diff options
author | Jana Fabrikova <[email protected]> | 2012-10-31 17:07:58 +0100 |
---|---|---|
committer | Jana Fabrikova <[email protected]> | 2012-10-31 17:07:58 +0100 |
commit | 70681430e560a92c59175e7894ccc7820b33ee71 (patch) | |
tree | f0dc67c117197471c2765ee344dad468b2fbffe2 /tests/reproducers/simple/JSToJGet | |
parent | c1a0c080ff1b1b9ba864780b3636b206726d4a89 (diff) |
Simplifying the testcases output in JSToJSet and JSToJGet reproducers.
Diffstat (limited to 'tests/reproducers/simple/JSToJGet')
-rw-r--r-- | tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java b/tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java index 014dbcc..3425c89 100644 --- a/tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java +++ b/tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java @@ -74,12 +74,12 @@ public class JSToJGetTest extends BrowserTest { private void evaluateStdoutContents(String testStr, ProcessResult pr) { // Assert that the applet was initialized. - Assert.assertTrue("JSToJGetTest stdout should contain \"" + initStr - + "\" but it didn't.", pr.stdout.contains(initStr)); + Assert.assertTrue("JSToJGetTest stdout should contain " + initStr + + " but it didnt.", pr.stdout.contains(initStr)); // Assert that the applet was set up for the GM tests. - Assert.assertTrue("JSToJGetTest stdout should contain \"" + setupStr - + "\" but it didn't.", pr.stdout.contains(setupStr)); + Assert.assertTrue("JSToJGetTest stdout should contain " + setupStr + + " but it didnt.", pr.stdout.contains(setupStr)); // Assert that the tests have passed. String s0 = testStr + passStr; @@ -99,26 +99,24 @@ public class JSToJGetTest extends BrowserTest { } String failStr = "JSToJGet " + testStr - + ": \"passed\" not found in the applet stdout, which is: " - + pr.stdout.substring(indBegin, pr.stdout.length()); + + ": passed not found in the applet stdout."; if (ind1 != -1) { // int inde = pr.stdout.indexOf(expStr); // int indf = pr.stdout.indexOf(foundStr); - int indend = pr.stdout.indexOf(endStr); - failStr = pr.stdout.substring(ind1, indend + endStr.length()); + // int indend = pr.stdout.indexOf(endStr); + failStr = "JSToJGet: value mismatch in "+testStr; } if (ind2 != -1) { // int inde = pr.stdout.indexOf(expStr); // int indf = pr.stdout.indexOf(foundStr); - int indend = pr.stdout.indexOf(endStr); - failStr = pr.stdout.substring(ind2, indend + endStr.length()); + // int indend = pr.stdout.indexOf(endStr); + failStr = "JSToJGet: type mismatch in "+testStr; } if (ind3 != -1) { - failStr = "JSToJGet: " + testStr - + pr.stdout.substring(ind3, pr.stdout.length()); + failStr = "JSToJGet: an error occured during " + testStr; } Assert.assertTrue(failStr, (ind3 == -1));// no error on Java side |