diff options
Diffstat (limited to 'test/harness/gs.js')
-rw-r--r-- | test/harness/gs.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/harness/gs.js b/test/harness/gs.js index 0fad6625d..18e75f8f1 100644 --- a/test/harness/gs.js +++ b/test/harness/gs.js @@ -22,7 +22,8 @@ //An exception is expected
if (testDescrip.negative !== undefined) {
- testDescrip.negative = testDescrip.negative !== "" ? testDescrip.negative : ".";
+ //TODO - come up with a generic way of catching the error type from window.onerror
+ testDescrip.negative = testDescrip.negative === "NotEarlyError" ? testDescrip.negative : ".";
if (window.iframeError === undefined) { //no exception was thrown
testRun(testDescrip.id, testDescrip.path, testDescrip.description, testDescrip.code,
'fail',
|