Index: LayoutTests/http/tests/filesystem/script-tests/resolve-uri.js |
diff --git a/LayoutTests/http/tests/filesystem/script-tests/resolve-uri.js b/LayoutTests/http/tests/filesystem/script-tests/resolve-uri.js |
index 66a7064554eb03198ad3c00cd02f2ccdf1411207..f2af44af2f5f3b6d3733b5aa6d1224c93f7b2d1f 100644 |
--- a/LayoutTests/http/tests/filesystem/script-tests/resolve-uri.js |
+++ b/LayoutTests/http/tests/filesystem/script-tests/resolve-uri.js |
@@ -9,24 +9,24 @@ var testFileName = '/testFile'; |
var fileSystem = null; |
var expectedPath = null; |
var actualPath = null; |
-var errorCode = null; |
+var errorName = null; |
function errorCallback(error) { |
- if (error && error.code) |
- debug("Error occurred: " + error.code); |
+ if (error && error.name) |
+ debug("Error occurred: " + error.name); |
testFailed("Bailing out early"); |
finishJSTest(); |
} |
function expectSecurityErrAndRunNext(error) { |
- errorCode = error.code; |
- shouldBe("FileError.SECURITY_ERR", "errorCode"); |
+ errorName = error.name; |
+ shouldBe('"SecurityError"', "errorName"); |
cleanupAndRunNext(); |
} |
function expectEncodingErrAndRunNext(error) { |
- errorCode = error.code; |
- shouldBe("FileError.ENCODING_ERR", "errorCode"); |
+ errorName = error.name; |
+ shouldBe('"EncodingError"', "errorName"); |
cleanupAndRunNext(); |
} |