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

Side by Side Diff: LayoutTests/inspector/console/console-shadow-dom-access.html

Issue 7147011: Merge 88331 - 2011-06-07 Andrey Kosyakov <caseq@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script>
6
7 var test = function()
8 {
9 var expressions = [
10 "$0.toString()",
11 "$0.firstChild.toString()",
12 "$0.firstChild.firstChild.style.width"
13 ];
14 function isShadowRoot(node)
15 {
16 return node.nodeType() === Node.SHADOW_ROOT_NODE;
17 }
18 function processExpression()
19 {
20 if (!expressions.length) {
21 InspectorTest.completeTest();
22 return;
23 }
24 var expression = expressions.shift();
25 InspectorTest.evaluateInConsoleAndDump(expression, processExpression);
26 }
27 InspectorTest.findNode(isShadowRoot, function(node) {
28 InspectorTest.selectNode(node, processExpression);
29 });
30 }
31
32 </script>
33 </head>
34
35 <body onload="runTest()">
36 <p>
37 Tests that $0 may successfully be used to refer to shadow DOM elements.
38 </p>
39
40 <meter min="0" max="100" value="42"></meter>
41 </body>
42 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/elements-test.js ('k') | LayoutTests/inspector/elements/shadow-dom.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698