From d5bf95c6289a7a60d98321ed528b36441d68301d Mon Sep 17 00:00:00 2001
From: David Fugate <dfugate@microsoft.com>
Date: Sun, 25 Sep 2011 10:47:34 -0700
Subject: [PATCH] Made exception type checking looser:  window.onerror isn't
 spec'ed to give us the exact error type, but we should get the '.message'
 property.

---
 test/harness/gs.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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