8280157: wrong texts Falied in a couple of tests

Reviewed-by: egahlin, aivanov
This commit is contained in:
Matthias Baesken 2022-01-19 12:01:10 +00:00
parent 68b40ec286
commit 8931c12258
5 changed files with 9 additions and 9 deletions
test/jdk
java
awt/Window/TranslucentShapedFrameTest
io/OutputStreamWriter
jdk/jfr

@ -158,7 +158,7 @@
<Properties>
<Property name="columns" type="int" value="20"/>
<Property name="rows" type="int" value="5"/>
<Property name="text" type="java.lang.String" value="Create translucent and/or shaped, or&#xa;non-opaque frame. Make sure it behaves&#xa;correctly (no artifacts left on the screen&#xa;when dragging - if dragging is possible).&#xa;Click &quot;Passed&quot; if the test behaves correctly,&#xa;&quot;Falied&quot; otherwise."/>
<Property name="text" type="java.lang.String" value="Create translucent and/or shaped, or&#xa;non-opaque frame. Make sure it behaves&#xa;correctly (no artifacts left on the screen&#xa;when dragging - if dragging is possible).&#xa;Click &quot;Passed&quot; if the test behaves correctly,&#xa;&quot;Failed&quot; otherwise."/>
</Properties>
</Component>
</SubComponents>

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -122,7 +122,7 @@ public class TranslucentShapedFrameTest extends javax.swing.JFrame {
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jTextArea1.setText("Create translucent and/or shaped, or\nnon-opaque frame. Make sure it behaves\ncorrectly (no artifacts left on the screen\nwhen dragging - if dragging is possible).\nClick \"Passed\" if the test behaves correctly,\n\"Falied\" otherwise.");
jTextArea1.setText("Create translucent and/or shaped, or\nnon-opaque frame. Make sure it behaves\ncorrectly (no artifacts left on the screen\nwhen dragging - if dragging is possible).\nClick \"Passed\" if the test behaves correctly,\n\"Failed\" otherwise.");
jScrollPane1.setViewportView(jTextArea1);
jLabel2.setText("Instructions:");

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -74,7 +74,7 @@ public class WriteAfterClose {
try {
wtr.write("a", 0, 1);
System.out.println("FALIED: Allows string buf write on a closed stream");
System.out.println("FAILED: Allows string buf write on a closed stream");
failed = true;
} catch (Exception e) {
}

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -119,7 +119,7 @@ public class TestRecordedFullStackTrace {
if (!isEventFound[i]) {
// no assertion, let's retry.
// Could be race condition, i.e safe point during Thread.sleep
System.out.println("Falied to validate all threads, will retry.");
System.out.println("Failed to validate all threads, will retry.");
return false;
}
}

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -111,7 +111,7 @@ public class TestFullStackTrace {
if(!isEventFound[i]) {
// no assertion, let's retry.
// Could be race condition, i.e safe point during Thread.sleep
System.out.println("Falied to validate all threads, will retry.");
System.out.println("Failed to validate all threads, will retry.");
return false;
}
}