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

Unified Diff: LayoutTests/http/tests/inspector/styles/resources/stylesheet-tracking-iframe.html

Issue 14821010: DevTools: Do not unbind stylesheets in multiframe documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test files left behind Created 7 years, 7 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/http/tests/inspector/styles/resources/stylesheet-tracking-iframe.html
diff --git a/LayoutTests/http/tests/inspector/styles/resources/stylesheet-tracking-iframe.html b/LayoutTests/http/tests/inspector/styles/resources/stylesheet-tracking-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..0ead079bc5c23c0c68b08f18f110a55f7e20cd34
--- /dev/null
+++ b/LayoutTests/http/tests/inspector/styles/resources/stylesheet-tracking-iframe.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<style type="text/css" media="screen">
+ body { background:green; }
+</style>
+<script>
+function handleMessage(event)
+{
+ switch (event.data) {
+ case "addStyleSheet":
+ var style = document.createElement("style");
+ style.textContent = "body { background-color: yellow; }";
+ document.head.appendChild(style);
+ break;
+ case "removeStyleSheet":
+ document.head.removeChild(document.head.children[0]);
+ break;
+ }
+}
+
+window.addEventListener("message", handleMessage, false);
+</script>
+</head>
+
+<body>
+</body>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698