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

Side by Side Diff: chrome/test/data/extensions/api_test/xhr_fail/background.js

Issue 859213006: Cancel client auth requests when not promptable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-auth-cancel-1
Patch Set: adjust comment Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698