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

Unified Diff: chrome/test/data/predictor/predictor_cross_site_subframe_nav.html

Issue 1881463003: Add a browsertest suite for net predictor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT that we get the right number of accepted connections after waiting Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/predictor/predictor_cross_site_subframe_nav.html
diff --git a/chrome/test/data/predictor/predictor_cross_site_subframe_nav.html b/chrome/test/data/predictor/predictor_cross_site_subframe_nav.html
new file mode 100644
index 0000000000000000000000000000000000000000..7fec52e456d4da7caf7c9d2617169f8c6c0da0b8
--- /dev/null
+++ b/chrome/test/data/predictor/predictor_cross_site_subframe_nav.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<p>
+This page loads an empty cross-site iframe, and exposes a method to navigate it.
+</p>
+<script>
+function getFrameDocument() {
+ return window.frames['iframe'].contentWindow.document;
+}
+
+function notifyLoaded() {
+ window.domAutomationController.send(true);
+}
+
+function navigateSubframe(url) {
+ var iframe = document.createElement('iframe');
+ iframe.onload = notifyLoaded;
+ iframe.src = url;
+ document.body.appendChild(iframe);
+}
+</script>
« no previous file with comments | « chrome/test/data/predictor/predictor_cross_site_no_referrer.html ('k') | net/test/embedded_test_server/embedded_test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698