Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: LayoutTests/http/tests/filesystem/script-tests/resolve-uri.js

Issue 22831019: Deprecate FileError in FileAPI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: win test expectation fix (temporary) Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698