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

Unified Diff: chrome/test/data/predictors/append_child.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/append_child.html ('k') | chrome/test/data/predictors/document_write.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/predictors/append_child.js
diff --git a/chrome/test/data/predictors/append_child.js b/chrome/test/data/predictors/append_child.js
new file mode 100644
index 0000000000000000000000000000000000000000..5b3068677f6ff7fb8071f0f372fa7f24128b524e
--- /dev/null
+++ b/chrome/test/data/predictors/append_child.js
@@ -0,0 +1,16 @@
+// 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.
+
+var img = document.createElement("img");
+img.src = "/handled-by-test/image.png"
+document.body.appendChild(img);
+
+var link = document.createElement("link");
+link.rel = "stylesheet";
+link.href = "/handled-by-test/style.css";
+document.head.appendChild(link);
+
+var script = document.createElement("script");
+script.src = "/handled-by-test/script.js";
+document.body.appendChild(script);
« no previous file with comments | « chrome/test/data/predictors/append_child.html ('k') | chrome/test/data/predictors/document_write.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698