diff --git a/test/harness/gs.js b/test/harness/gs.js index 0fad6625d399efa14ccc3e07849b7d475b73765f..18e75f8f1c1706c3addcaf5fde17e79d253127ef 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',