diff options
author | David Fugate <dfugate@microsoft.com> | 2011-09-25 17:05:32 -0700 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2011-09-25 17:05:32 -0700 |
commit | 352d86b8edf3d6efe1eac0c08df26fabf260682f (patch) | |
tree | dbb55f4a221f0371e0d4d07d693929f572cbb787 /website/harness | |
parent | 515ed58d604f8fcc6fdf21eac57ad852b6e07399 (diff) |
Support not-NotEarlyError as well.
Diffstat (limited to 'website/harness')
-rw-r--r-- | website/harness/gs.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/website/harness/gs.js b/website/harness/gs.js index 18e75f8f1..1356a4ff6 100644 --- a/website/harness/gs.js +++ b/website/harness/gs.js @@ -23,7 +23,9 @@ //An exception is expected
if (testDescrip.negative !== undefined) {
//TODO - come up with a generic way of catching the error type from window.onerror
- testDescrip.negative = testDescrip.negative === "NotEarlyError" ? testDescrip.negative : ".";
+ testDescrip.negative = testDescrip.negative === "NotEarlyError" ?
+ 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',
|