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

Unified Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions.html

Issue 74133005: Remove several uses of toWebCoreStringWithNullCheck(v8::Handle<v8::Value>) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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/fast/xmlhttprequest/xmlhttprequest-open-exceptions.html
diff --git a/LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions.html b/LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions.html
index 6a869cdc2d1d994835a2a286e92c79b73d017485..2e767cb19fa1c89e15c1c9440a7eb5a4e96f6de9 100644
--- a/LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions.html
+++ b/LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions.html
@@ -26,6 +26,14 @@
xhrException = e;
shouldBeEqualToString("xhrException.message", "Refused to connect to 'http://not.example.com/' because it violates the document's Content Security Policy.");
}
+
+ var badString = { toString: function() { throw "Exception in toString()"; } };
+ var xhr = new XMLHttpRequest();
+ shouldBe("xhr.readyState", "XMLHttpRequest.UNSENT");
+ shouldThrow("xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, badString, 'password');", "'Exception in toString()'");
+ shouldBe("xhr.readyState", "XMLHttpRequest.UNSENT");
+ shouldThrow("xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, 'username', badString);", "'Exception in toString()'");
+ shouldBe("xhr.readyState", "XMLHttpRequest.UNSENT");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698