| Index: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/null-auth.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/null-auth.php b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/null-auth.php
|
| index 7ee1e711546bc3724f82892ad115bf97469ddd00..2965c957d63ea16558a2c9fc910b1ead78d898e4 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/null-auth.php
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/null-auth.php
|
| @@ -5,12 +5,8 @@
|
| if (window.testRunner)
|
| testRunner.dumpAsText();
|
|
|
| -try {
|
| - req = new XMLHttpRequest;
|
| - req.open('POST', '<?php echo 'http://foo:bar@' . $_SERVER['HTTP_HOST'] . '/xmlhttprequest/resources/echo-auth.php' ?>', false, null, null);
|
| - req.send();
|
| - console.log("Fail: credentialed URLs should throw.");
|
| -} catch (e) {
|
| - console.log("Pass: credentialed URL threw.");
|
| -}
|
| +req = new XMLHttpRequest;
|
| +req.open('POST', '<?php echo 'http://foo:bar@' . $_SERVER['HTTP_HOST'] . '/xmlhttprequest/resources/echo-auth.php' ?>', false, null, null);
|
| +req.send();
|
| +document.getElementById('syncResult').firstChild.nodeValue = req.responseText;
|
| </script>
|
|
|