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> |