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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/shadow-dom-rules-in-styleSheetAddedEvent.html

Issue 2950713002: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: addressed comments, 4 tests Created 3 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: third_party/WebKit/LayoutTests/inspector-protocol/shadow-dom-rules-in-styleSheetAddedEvent.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/shadow-dom-rules-in-styleSheetAddedEvent.html b/third_party/WebKit/LayoutTests/inspector-protocol/shadow-dom-rules-in-styleSheetAddedEvent.html
deleted file mode 100644
index 27dda57d3ad09b5242a2ae89f97c44da9cc4bfc7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/shadow-dom-rules-in-styleSheetAddedEvent.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<script type="text/javascript" src="../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script type="text/javascript">
-function pageLoaded()
-{
- var template = document.querySelector("#tmpl");
- var root = document.querySelector("#host").createShadowRoot();
- root.appendChild(template.content.cloneNode(true));
- runTest();
-}
-
-function test()
-{
- InspectorTest.eventHandler["CSS.styleSheetAdded"] = styleSheetAdded;
- InspectorTest.sendCommandOrDie("DOM.enable", {});
- InspectorTest.sendCommand("CSS.enable", {}, null);
-
- function styleSheetAdded(msg)
- {
- var styleSheetHeader = msg.params.header;
- InspectorTest.sendCommand("CSS.getStyleSheetText", {"styleSheetId": styleSheetHeader.styleSheetId}, onStyleSheetText);
- }
-
- function onStyleSheetText(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