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(); |
| 11 }; |
| 12 xhr.onload = function(ev) { |
| 13 chrome.test.notifyFail("XHR unexpectedly passed"); |
| 14 }; |
| 15 xhr.send(); |
| 16 }); |
OLD | NEW |