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

Unified Diff: LayoutTests/inspector/elements/styles/edit-media-text.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/edit-media-text.html
diff --git a/LayoutTests/inspector/elements/styles/edit-media-text.html b/LayoutTests/inspector/elements/styles/edit-media-text.html
deleted file mode 100644
index c56ab31997cd8ed8a320e9a5b651437f1653aa70..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/edit-media-text.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<html>
-<head>
-<style>
-@media screen and (max-device-width: 100000px) {
- #inspected {
- color: green;
- }
- #inspected {
- color: blue;
- }
-}
-@media screen and (max-device-width: 200000px) {
- #other {
- 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("inspected", step1);
-
- function step1()
- {
- InspectorTest.addResult("=== Before media text modification ===");
- InspectorTest.dumpSelectedElementStyles(true);
- var section = InspectorTest.firstMatchedStyleSection();
- var mediaTextElement = InspectorTest.firstMediaTextElementInSection(section);
- mediaTextElement.click();
- mediaTextElement.textContent = "screen and (max-device-width: 99999px)";
- InspectorTest.waitForMediaTextCommitted(step2);
- mediaTextElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- }
-
- function step2()
- {
- InspectorTest.addResult("=== After valid media text modification ===");
- InspectorTest.dumpSelectedElementStyles(true);
- var section = InspectorTest.firstMatchedStyleSection();
- var mediaTextElement = InspectorTest.firstMediaTextElementInSection(section);
- mediaTextElement.click();
- mediaTextElement.textContent = "something is wrong here";
- InspectorTest.waitForMediaTextCommitted(step3);
- mediaTextElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- }
-
- function step3()
- {
- InspectorTest.addResult("=== After invalid media text modification ===");
- InspectorTest.dumpSelectedElementStyles(true);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that editing media text updates element styles.
-</p>
-
-<div id="inspected" style="color: red">Text</div>
-<div id="other"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698