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

Unified Diff: LayoutTests/inspector/elements/shadow-dom.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/elements/shadow-dom.html
===================================================================
--- LayoutTests/inspector/elements/shadow-dom.html (revision 88781)
+++ LayoutTests/inspector/elements/shadow-dom.html (working copy)
@@ -1,70 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function addShadowRoot()
-{
- if (!window.layoutTestController)
- return;
- var element = document.getElementById("delayed-shadow-host");
- var shadowRoot = layoutTestController.ensureShadowRoot(element);
- var shadowChild = document.createElement("div");
- shadowRoot.appendChild(shadowChild);
- var span = document.createElement("span");
- span.textContent = "text";
- shadowChild.appendChild(span);
-}
-
-function test()
-{
- InspectorTest.runTestSuite([
- function testDumpInitial(next)
- {
- InspectorTest.expandElementsTree(function() {
- InspectorTest.selectNodeWithId("meter", function(node) {
- InspectorTest.dumpElementsTree(node);
- next();
- });
- });
- },
-
- function testDumpUpdated(next) {
- var host;
-
- function dumpWithShadowRoot()
- {
- InspectorTest.addResult("After shadow root added");
- InspectorTest.runAfterPendingDispatches(function() {
- InspectorTest.dumpElementsTree(host);
- next();
- });
- }
-
- InspectorTest.selectNodeWithId("delayed-shadow-host", function(node) {
- host = node;
- InspectorTest.addResult("Before shadow root added");
- InspectorTest.dumpElementsTree(node);
-
- WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.ShadowRootUpdated, function() {
- InspectorTest.expandElementsTree(dumpWithShadowRoot);
- });
- InspectorTest.evaluateInPage("addShadowRoot()");
- });
- }
- ]);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that shadow DOM tree is properly displayed.
-</p>
-
-<meter id="meter" min="0" max="100" value="20"></meter>
-<div id="delayed-shadow-host"></div>
-</body>
-</html>
« no previous file with comments | « LayoutTests/inspector/console/console-shadow-dom-access.html ('k') | LayoutTests/inspector/elements/shadow-dom-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698