Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert changes to run.js

  • Loading branch information...
commit 74fb75e5f778ef61db29657c1daf593175deba71 1 parent 3bfbf31
@rwaldron rwaldron authored
Showing with 2 additions and 16 deletions.
  1. +2 −16 src/test/run.js
View
18 src/test/run.js
@@ -34,23 +34,9 @@ function runOneSync(name, selname, p) {
});
} catch(e) {
got = e.toString();
- if (want.trim() != got.trim()) {
-
- // The error messages will have consistent prefix strings, but variant context strings
- if ( want.trim().indexOf("Error") === -1 && got.trim().indexOf( want.trim() ) !== 0 ) {
- throw e;
- }
- //console.log( "want: " + want.trim() );
- //console.log( "got: " + got.trim() );
- }
- }
- if (want.trim() != got.trim()) {
- //console.log( "want: " + want.trim() );
- //console.log( "got: " + got.trim() );
- if ( want.trim().indexOf("Error") === -1 && got.trim().indexOf( want.trim() ) !== 0 ) {
- throw "mismatch";
- }
+ if (want.trim() != got.trim()) throw e;
}
+ if (want.trim() != got.trim()) throw "mismatch";
}
Please sign in to comment.
Something went wrong with that request. Please try again.