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

Unified Diff: LayoutTests/inspector/elements/styles/media-emulation.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/inspector/elements/styles/media-emulation.html
diff --git a/LayoutTests/inspector/elements/styles/media-emulation.html b/LayoutTests/inspector/elements/styles/media-emulation.html
deleted file mode 100644
index 679015227778c9dcb0176fee8b0a2058c5534d16..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/media-emulation.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<html>
-<head>
-
-<style type="text/css">
-#main { color: red; }
-
-@media print {
-#main { color: black; }
-}
-
-@media tty {
-#main { color: green; }
-}
-</style>
-
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function test()
-{
- InspectorTest.selectNodeAndWaitForStyles("main", step0);
-
- function step0()
- {
- InspectorTest.addResult("Original style:");
- InspectorTest.dumpSelectedElementStyles(true);
- applyEmulatedMedia("print");
- InspectorTest.waitForStyles("main", step1);
- }
-
- function step1() {
- InspectorTest.addResult("print media emulated:");
- InspectorTest.dumpSelectedElementStyles(true);
- applyEmulatedMedia("tty");
- InspectorTest.waitForStyles("main", step2);
- }
-
- function step2()
- {
- InspectorTest.addResult("tty media emulated:");
- InspectorTest.dumpSelectedElementStyles(true);
- applyEmulatedMedia("");
- InspectorTest.waitForStyles("main", step3);
- }
-
- function step3()
- {
- InspectorTest.addResult("No media emulated:");
- InspectorTest.dumpSelectedElementStyles(true);
- InspectorTest.completeTest();
- }
-
- function applyEmulatedMedia(media)
- {
- InspectorTest.EmulationAgent.setEmulatedMedia(media);
- InspectorTest.cssModel.mediaQueryResultChanged();
- }
-}
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that emulated CSS media is reflected in the Styles pane.
-</p>
-
-<div id="main"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698