Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 chrome.test.getConfig(function(config) { | |
| 6 var xhr = new XMLHttpRequest(); | |
| 7 xhr.open("GET", config.customArg); | |
| 8 // The XHR is expected to fail. | |
| 9 xhr.onerror = function(ev) { | |
| 10 chrome.test.notifyPass(); | |
|
Ryan Sleevi
2015/02/25 06:31:36
If the test server breaks, this test will continue
davidben
2015/02/26 18:09:41
I was going to write why this is kind of a pain, a
| |
| 11 }; | |
| 12 xhr.onload = function(ev) { | |
| 13 chrome.test.notifyFail("XHR unexpectedly passed"); | |
| 14 }; | |
| 15 xhr.send(); | |
| 16 }); | |
| OLD | NEW |