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

Unified Diff: LayoutTests/inspector/elements/styles/edit-value-inside-property.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-value-inside-property.html
diff --git a/LayoutTests/inspector/elements/styles/edit-value-inside-property.html b/LayoutTests/inspector/elements/styles/edit-value-inside-property.html
deleted file mode 100644
index 1064c0aa362c8964922618e3bd73cc97a48a482e..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/edit-value-inside-property.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function test()
-{
- InspectorTest.selectNodeAndWaitForStyles("inspected", testEmulateKeypress);
-
- function testEmulateKeypress()
- {
- var treeElement = InspectorTest.getMatchedStylePropertyTreeItem("font-size");
- treeElement.startEditing(treeElement.valueElement);
- var selection = window.getSelection();
- var range = selection.getRangeAt(0);
- var newRange = document.createRange();
- newRange.setStart(range.startContainer, 1);
- newRange.setEnd(range.startContainer, 1);
- selection.removeAllRanges();
- selection.addRange(newRange);
- // Use eventSender to emit "input" event.
- eventSender.keyDown("1");
- InspectorTest.waitForStyleApplied(onStyleApplied);
- }
-
- function onStyleApplied()
- {
- InspectorTest.nodeWithId("inspected", onNodeFound);
- }
-
- function onNodeFound(node)
- {
- InspectorTest.cssModel.getInlineStylesAsync(node.id, onInlineStyle);
- }
-
- function onInlineStyle(inlineStyle)
- {
- if (!inlineStyle) {
- InspectorTest.addResult("Failed to get inline styles.").
- InspectorTest.completeTest();
- return;
- }
- InspectorTest.addResult("font-size: " + inlineStyle.getPropertyValue("font-size"));
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Verifies that property value editing triggers style update in rendering engine.
-</p>
-
-<div id="inspected" style="font-size: 19px"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698