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

Side by Side Diff: LayoutTests/http/tests/inspector/network/network-blocked-reason.html

Issue 1328273003: [DevTools] Allow stars in blocked url pattern. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-in line'"> 3 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-in line'">
4 <script src="/inspector/inspector-test.js"></script> 4 <script src="/inspector/inspector-test.js"></script>
5 <script> 5 <script>
6 6
7 function sendCSPRequest() 7 function sendCSPRequest()
8 { 8 {
9 var script = document.createElement("script"); 9 var script = document.createElement("script");
10 script.src = "https://www.example.com/csp.js"; 10 script.src = "https://www.example.com/csp.js";
(...skipping 30 matching lines...) Expand all
41 InspectorTest.runTestSuite([ 41 InspectorTest.runTestSuite([
42 function testCSP(next) 42 function testCSP(next)
43 { 43 {
44 requestName = "csp.js"; 44 requestName = "csp.js";
45 nextStep = next; 45 nextStep = next;
46 InspectorTest.evaluateInPage("sendCSPRequest()"); 46 InspectorTest.evaluateInPage("sendCSPRequest()");
47 }, 47 },
48 48
49 function testDevTools(next) 49 function testDevTools(next)
50 { 50 {
51 blockedSetting.set(["http://some.strange.origin/script.js", "resourc es/silent_script.js"]); 51 blockedSetting.set(["http://some.strange.origin/script.js", "resourc es**/silent*.js*"]);
caseq 2015/09/08 23:04:16 Can we please have a more extensive test for that?
52 nextStep = removeBlock; 52 nextStep = removeBlock;
53 InspectorTest.runAfterPendingDispatches(addScript); 53 InspectorTest.runAfterPendingDispatches(addScript);
54 54
55 function removeBlock() 55 function removeBlock()
56 { 56 {
57 blockedSetting.set(["http://some.strange.origin/script.js"]); 57 blockedSetting.set(["http://some.strange.origin/script.js"]);
58 nextStep = next; 58 nextStep = next;
59 InspectorTest.runAfterPendingDispatches(addScript); 59 InspectorTest.runAfterPendingDispatches(addScript);
60 } 60 }
61 61
62 function addScript() 62 function addScript()
63 { 63 {
64 requestName = "silent_script.js"; 64 requestName = "silent_script.js";
65 InspectorTest.evaluateInPage("addBlockedScript()"); 65 InspectorTest.evaluateInPage("addBlockedScript()");
66 } 66 }
67 } 67 }
68 ]); 68 ]);
69 } 69 }
70 </script> 70 </script>
71 </head> 71 </head>
72 <body onload="runTest()"> 72 <body onload="runTest()">
73 <p>Tests that blocked reason is recognized correctly.</p> 73 <p>Tests that blocked reason is recognized correctly.</p>
74 </body> 74 </body>
75 </html> 75 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorResourceAgent.cpp » ('j') | Source/core/inspector/InspectorResourceAgent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698