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

Unified Diff: chrome/test/data/devtools/emulate_network_conditions.html

Issue 2087293003: [DevTools] Network.emulateNetworkConditions now affects NetworkStateNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck Created 4 years, 6 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/devtools/emulate_network_conditions.html
diff --git a/chrome/test/data/devtools/emulate_network_conditions.html b/chrome/test/data/devtools/emulate_network_conditions.html
new file mode 100644
index 0000000000000000000000000000000000000000..f820d58b394b0cfe38704cf0d615855be7e53faf
--- /dev/null
+++ b/chrome/test/data/devtools/emulate_network_conditions.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+<script>
+window.addEventListener("online", () => console.log("online event: online = " + navigator.onLine), false);
+window.addEventListener("offline", () => console.log("offline event: online = " + navigator.onLine), false);
+navigator.connection.onchange = () => console.log("connection change event: type = " + navigator.connection.type + "; downlinkMax = " + navigator.connection.downlinkMax);
+</script>
+</head>
+<body>
+</body>
+</html>
« no previous file with comments | « chrome/browser/devtools/devtools_sanity_browsertest.cc ('k') | content/browser/devtools/protocol/network_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698