Index: LayoutTests/fast/dom/Node/fragment-mutation.html |
diff --git a/LayoutTests/fast/dom/Node/fragment-mutation.html b/LayoutTests/fast/dom/Node/fragment-mutation.html |
index 84e67f6539d64b73e3511020c076e04c9e800cbf..9b772748f326c14fdf48a14e734ddc9418b6269f 100644 |
--- a/LayoutTests/fast/dom/Node/fragment-mutation.html |
+++ b/LayoutTests/fast/dom/Node/fragment-mutation.html |
@@ -36,13 +36,13 @@ function produceNodeNameString(nodes) |
return result; |
} |
-function expectException(code) |
+function expectException(error) |
{ |
return function(stash, exception) { |
if (!exception) |
return "FAIL, expected exception with code " + code + ". The resulting fragment was: \"" + produceNodeNameString(stash) + "\"."; |
- if (code == exception.code) |
+ if (exception instanceof error) |
return "PASS"; |
return "FAIL, expected exception code: " + code + ", was: " + exception + "."; |
} |
@@ -122,7 +122,7 @@ function runTest(methodName, method) |
testFragment(method, "Continually re-appending removed element to the fragment should eventually throw NOT_FOUND_ERR", function(evt, frag, stash) |
{ |
stash.insertBefore(frag.lastChild, stash.firstChild); |
- }, expectException(8), true); |
+ }, expectException(TypeError), true); |
printLog(methodName); |
} |
function runTests() |