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

Side by Side Diff: LayoutTests/inspector/elements/event-listeners-about-blank.html

Issue 1172643002: DevTools: migrate sidebar pane's titleElement to use Toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: only using latin1 in css Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function setupEventListeners() 7 function setupEventListeners()
8 { 8 {
9 function f() {} 9 function f() {}
10 var frame = document.getElementById("myframe"); 10 var frame = document.getElementById("myframe");
11 var body = frame.contentDocument.body; 11 var body = frame.contentDocument.body;
12 body.addEventListener("click", f, true); 12 body.addEventListener("click", f, true);
13 var div = frame.contentDocument.createElement("div"); 13 var div = frame.contentDocument.createElement("div");
14 div.id = "div-in-iframe"; 14 div.id = "div-in-iframe";
15 div.addEventListener("hover", f, true); 15 div.addEventListener("hover", f, true);
16 body.appendChild(div); 16 body.appendChild(div);
17 } 17 }
18 18
19 function test() 19 function test()
20 { 20 {
21 WebInspector.settingForTest("eventListenersFilter").set("all"); 21 WebInspector.settingForTest("showEventListenersForAncestors").set(true);
22 InspectorTest.evaluateInPage("setupEventListeners()", step1); 22 InspectorTest.evaluateInPage("setupEventListeners()", step1);
23 23
24 function step1() 24 function step1()
25 { 25 {
26 InspectorTest.selectNodeWithId("div-in-iframe", step2); 26 InspectorTest.selectNodeWithId("div-in-iframe", step2);
27 } 27 }
28 28
29 function step2() 29 function step2()
30 { 30 {
31 InspectorTest.expandAndDumpSelectedElementEventListeners(InspectorTest.c ompleteTest.bind(InspectorTest)); 31 InspectorTest.expandAndDumpSelectedElementEventListeners(InspectorTest.c ompleteTest.bind(InspectorTest));
32 } 32 }
33 } 33 }
34 34
35 </script> 35 </script>
36 </head> 36 </head>
37 37
38 <body onload="runTest()"> 38 <body onload="runTest()">
39 <p> 39 <p>
40 Tests event listeners output in the Elements sidebar panel when the listeners ar e added on an element in about:blank page. 40 Tests event listeners output in the Elements sidebar panel when the listeners ar e added on an element in about:blank page.
41 </p> 41 </p>
42 42
43 <iframe id="myframe"></iframe> 43 <iframe id="myframe"></iframe>
44 44
45 </body> 45 </body>
46 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698