Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / resolve-alien-node.html
blob69d867df6428ae007a2de271ac3cdf8b2fbc3966
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script>
6 function test()
8 InspectorTest.RuntimeAgent.evaluate("var doc = document.implementation.createHTMLDocument(''); doc.lastChild.innerHTML = '<span></span>'; doc.lastChild", step1);
10 function step1(error, result, wasThrown)
12 var spanWrapper = InspectorTest.runtimeModel.createRemoteObject(result);
13 InspectorTest.domModel.pushObjectAsNodeToFrontend(spanWrapper, step2);
16 function step2(node)
18 InspectorTest.assertTrue(node, "Node object should be resovled");
19 node.resolveToObject(undefined, step3);
22 function step3(remoteObject)
24 InspectorTest.addResult("Alien node should resolve to null: " + remoteObject);
25 InspectorTest.completeTest();
29 </script>
30 </head>
32 <body onload="runTest()">
33 <p>
34 Tests that resolveNode from alien document does not crash. https://bugs.webkit.org/show_bug.cgi?id=71806.
35 </p>
37 </body>
38 </html>