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

Unified Diff: LayoutTests/inspector/elements/edit-style-attribute.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/edit-style-attribute.html
diff --git a/LayoutTests/inspector/elements/edit-style-attribute.html b/LayoutTests/inspector/elements/edit-style-attribute.html
deleted file mode 100644
index e752d66fecf79ee249a15a241001da352e77885e..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/edit-style-attribute.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function testSetNewValue()
-{
- document.getElementById("node-set-new-value").style.setProperty("color", "blue");
-}
-
-function testSetSameValue()
-{
- document.getElementById("node-set-same-value").style.setProperty("color", "red");
-}
-
-function test()
-{
- // Save time on style updates.
- WebInspector.StylesSidebarPane.prototype.update = function() {};
- WebInspector.MetricsSidebarPane.prototype.update = function() {};
-
- InspectorTest.runTestSuite([
- function testSetUp(next)
- {
- InspectorTest.expandElementsTree(next);
- },
-
- function testSetNewValue(next)
- {
- InspectorTest.evaluateInPage("testSetNewValue()");
-
- InspectorTest.domModel.addEventListener(WebInspector.DOMModel.Events.AttrModified, listener);
- function listener(event)
- {
- InspectorTest.addResult("WebInspector.DOMModel.Events.AttrModified should be issued");
- InspectorTest.domModel.removeEventListener(WebInspector.DOMModel.Events.AttrModified, listener);
- next();
- }
- },
-
- function testSetSameValue(next)
- {
- InspectorTest.evaluateInPage("testSetSameValue()", next);
-
- InspectorTest.domModel.addEventListener(WebInspector.DOMModel.Events.AttrModified, listener);
- function listener(event)
- {
- InspectorTest.addResult("WebInspector.DOMModel.Events.AttrModified should not be issued");
- InspectorTest.domModel.removeEventListener(WebInspector.DOMModel.Events.AttrModified, listener);
- }
- }
- ]);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that style modification generates attribute updated event only when attribute is actually changed.
-</p>
-
-<div id="container">
- <div id="node-set-new-value" style="color:red"></div>
- <div id="node-set-same-value" style="color:red"></div>
-</div>
-</body>
-</html>
« no previous file with comments | « LayoutTests/inspector/elements/edit-dom-test.js ('k') | LayoutTests/inspector/elements/edit-style-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698