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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/extensions-useragent.html

Issue 2274233002: [Devtools] Fix reload behavior when devtools is open (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new methods Created 4 years, 3 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="inspector-test.js"></script> 3 <script src="inspector-test.js"></script>
4 <script src="extensions-test.js"></script> 4 <script src="extensions-test.js"></script>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 6
7 function extension_testUserAgent(nextTest) 7 function extension_testUserAgent(nextTest)
8 { 8 {
9 const requestsToCheck = [ 9 const requestsToCheck = [
10 "extensions-useragent.html", 10 "extensions-useragent.html",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 webInspector.inspectedWindow.reload(""); 43 webInspector.inspectedWindow.reload("");
44 } 44 }
45 function onPageLoaded() 45 function onPageLoaded()
46 { 46 {
47 for (var i = 0; i < queuedOutput.length; ++i) 47 for (var i = 0; i < queuedOutput.length; ++i)
48 output(queuedOutput[i]); 48 output(queuedOutput[i]);
49 nextTest(); 49 nextTest();
50 } 50 }
51 51
52 webInspector.network.onRequestFinished.addListener(onRequestFinished); 52 webInspector.network.onRequestFinished.addListener(onRequestFinished);
53 webInspector.inspectedWindow.reload("Mozilla/4.0 (compatible; WebInspector E xtension User-Agent override; RSX-11M)"); 53 webInspector.inspectedWindow.reload({ignoreCache: true, userAgent: "Mozilla/ 4.0 (compatible; WebInspector Extension User-Agent override; RSX-11M)"});
54 } 54 }
55 55
56 (function() 56 (function()
57 { 57 {
58 var xhr = new XMLHttpRequest(); 58 var xhr = new XMLHttpRequest();
59 xhr.open("GET", "resources/xhr-exists.html", false); 59 xhr.open("GET", "resources/xhr-exists.html", false);
60 xhr.send(null); 60 xhr.send(null);
61 })(); 61 })();
62 62
63 </script> 63 </script>
64 </head> 64 </head>
65 <body onload="runTest()"> 65 <body onload="runTest()">
66 <p>Tests overriding user agent via WebInspector extension API</p> 66 <p>Tests overriding user agent via WebInspector extension API</p>
67 </body> 67 </body>
68 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698