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

Unified Diff: LayoutTests/inspector-protocol/shadow-dom-rules-in-getAllStyleSheets.html

Issue 148523012: DevTools: [CSS] remove getAllStylesheets method from protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix testcase extension Created 6 years, 11 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-protocol/shadow-dom-rules-in-getAllStyleSheets.html
diff --git a/LayoutTests/inspector-protocol/shadow-dom-rules-in-getAllStyleSheets.html b/LayoutTests/inspector-protocol/shadow-dom-rules-in-getAllStyleSheets.html
deleted file mode 100644
index 5feb97cb72b243821587decfc3cf0f9eaddf3cef..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector-protocol/shadow-dom-rules-in-getAllStyleSheets.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<script type="text/javascript" src="../http/tests/inspector-protocol/resources/protocol-test.js"></script>
-<script>
-function pageLoaded()
-{
- var template = document.querySelector('#tmpl');
- var root = document.querySelector('#host').webkitCreateShadowRoot();
- root.appendChild(template.content.cloneNode(true));
- runTest();
-}
-
-function test()
-{
- InspectorTest.sendCommand("CSS.enable", {}, step1);
-
- function step1()
- {
- InspectorTest.sendCommand("CSS.getAllStyleSheets", {}, step2);
- }
-
- function step2(payload)
- {
- var headers = payload.result.headers
- InspectorTest.log("Loaded style sheets count: " + headers.length);
- var styleSheetHeader = headers[0];
- InspectorTest.sendCommand("CSS.getStyleSheetText", {"styleSheetId": styleSheetHeader.styleSheetId}, step3);
- }
-
- function step3(payload)
- {
- InspectorTest.log("Loaded style sheet text: " + payload.result.text);
- InspectorTest.completeTest();
- }
-}
-</script>
-</head>
-<body onload="pageLoaded()">
-<p>This test checks that style sheets hosted inside shadow roots are reported in CSS.getAllStyleSheets protocol method.</p>
-<div id="host"></div>
-<template id="tmpl">
- <style> .red { color: red; } </style>
- <div id="inner" class="red">hi!</div>
-</template>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698