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

Side by Side Diff: LayoutTests/inspector/elements/resolve-alien-node.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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> 4 <script>
5 5
6 function test() 6 function test()
7 { 7 {
8 InspectorTest.RuntimeAgent.evaluate("var doc = document.implementation.creat eHTMLDocument(''); doc.lastChild.innerHTML = '<span></span>'; doc.lastChild", st ep1); 8 InspectorTest.RuntimeAgent.evaluate("var doc = document.implementation.creat eHTMLDocument(''); doc.lastChild.innerHTML = '<span></span>'; doc.lastChild", st ep1);
9 9
10 function step1(error, result, wasThrown) 10 function step1(error, result, wasThrown)
11 { 11 {
12 var spanWrapper = WebInspector.runtimeModel.createRemoteObject(result); 12 var spanWrapper = InspectorTest.runtimeModel.createRemoteObject(result);
13 spanWrapper.pushNodeToFrontend(step2); 13 spanWrapper.pushNodeToFrontend(step2);
14 } 14 }
15 15
16 function step2(node) 16 function step2(node)
17 { 17 {
18 InspectorTest.assertTrue(node, "Node object should be resovled"); 18 InspectorTest.assertTrue(node, "Node object should be resovled");
19 node.resolveToObject(undefined, step3); 19 node.resolveToObject(undefined, step3);
20 } 20 }
21 21
22 function step3(remoteObject) 22 function step3(remoteObject)
23 { 23 {
24 InspectorTest.addResult("Alien node should resolve to null: " + remoteOb ject); 24 InspectorTest.addResult("Alien node should resolve to null: " + remoteOb ject);
25 InspectorTest.completeTest(); 25 InspectorTest.completeTest();
26 } 26 }
27 } 27 }
28 28
29 </script> 29 </script>
30 </head> 30 </head>
31 31
32 <body onload="runTest()"> 32 <body onload="runTest()">
33 <p> 33 <p>
34 Tests that resolveNode from alien document does not crash. https://bugs.webkit.o rg/show_bug.cgi?id=71806. 34 Tests that resolveNode from alien document does not crash. https://bugs.webkit.o rg/show_bug.cgi?id=71806.
35 </p> 35 </p>
36 36
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698