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

Unified Diff: third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-invalid-values.html

Issue 2297483002: Make XMLHttpRequest.open() throw for invalid URLs (Closed)
Patch Set: Addressed #12 Created 4 years, 3 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: third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-invalid-values.html
diff --git a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-invalid-values.html b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-invalid-values.html
index 9419e7957058e6c834d06c4e7d91b7ab44dd1fc2..19daf3108a05d0d877c181056bfac5a22d0cc6f1 100644
--- a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-invalid-values.html
+++ b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-invalid-values.html
@@ -1,20 +1,5 @@
<html>
<script>
-function testInvalidMethod() {
- var result = 'FAILURE';
-
- var req = new XMLHttpRequest();
-
- try {
- req.open('test\r\nfoobar', window.location, true)
- } catch (e) {
- if (e.code == DOMException.SYNTAX_ERR)
- result = 'SUCCESS';
- }
-
- debug('testInvalidMethod: ' + result);
-}
-
function testInvalidHeaderName() {
var result = 'FAILURE';
@@ -76,7 +61,6 @@ function runTest() {
if (window.testRunner)
testRunner.dumpAsText();
- testInvalidMethod();
testInvalidHeaderName();
testInvalidHeaderValues();
}

Powered by Google App Engine
This is Rietveld 408576698