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

Unified Diff: chrome/test/data/predictors/xhr.js

Issue 2540803002: predictors: Add browsertests that check fetching through javascript. (Closed)
Patch Set: Address lizeb comments. Created 4 years 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
« no previous file with comments | « chrome/test/data/predictors/xhr.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/predictors/xhr.js
diff --git a/chrome/test/data/predictors/xhr.js b/chrome/test/data/predictors/xhr.js
new file mode 100644
index 0000000000000000000000000000000000000000..266fa37aa7d59f48f32ac916fea23aa6b64911da
--- /dev/null
+++ b/chrome/test/data/predictors/xhr.js
@@ -0,0 +1,13 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function requestSynchronously(url) {
+ var request = new XMLHttpRequest();
+ request.open('GET', url, false);
+ request.send(null);
+}
+
+requestSynchronously('/handled-by-test/image.png');
+requestSynchronously("/handled-by-test/style.css");
+requestSynchronously("/handled-by-test/script.js");
« no previous file with comments | « chrome/test/data/predictors/xhr.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698