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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html

Issue 2553043003: [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: rebased 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="/inspector/inspector-test.js"></script> 3 <script src="/inspector/inspector-test.js"></script>
4 <script> 4 <script>
5 function createIFrame() { 5 function createIFrame() {
6 var iframe = document.createElement("iframe"); 6 var iframe = document.createElement("iframe");
7 iframe.src = "resources/font-face.html"; 7 iframe.src = "resources/font-face.html";
8 document.body.appendChild(iframe); 8 document.body.appendChild(iframe);
9 } 9 }
10 10
11 function test() { 11 function test() {
12 function onRequest(event) 12 function onRequest(eventType, event)
13 { 13 {
14 var request = event.data; 14 var request = event.data;
15 if (request.name() === 'done') { 15 if (request.name() === 'done') {
16 InspectorTest.completeTest(); 16 InspectorTest.completeTest();
17 return; 17 return;
18 } 18 }
19 InspectorTest.addResult(event.type.toString() + ": " + request.name()); 19 InspectorTest.addResult(eventType + ": " + request.name());
20 } 20 }
21 InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.Requ estStarted, onRequest); 21 InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.Requ estStarted, onRequest.bind(null, "RequestStarted"));
22 InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.Requ estFinished, onRequest); 22 InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.Requ estFinished, onRequest.bind(null, "RequestFinished"));
23 23
24 InspectorTest.evaluateInPage("createIFrame()"); 24 InspectorTest.evaluateInPage("createIFrame()");
25 } 25 }
26 </script> 26 </script>
27 </head> 27 </head>
28 <body onload="runTest()"> 28 <body onload="runTest()">
29 <p>Tests that a used font-face is reported and an unused font-face is not report ed.</p> 29 <p>Tests that a used font-face is reported and an unused font-face is not report ed.</p>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698