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

Unified Diff: LayoutTests/fast/dom/shadow/style-and-shadow-element.html

Issue 1187053004: Move backgroundColorOf/backgroundColorShouldBe to shadow-dom.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/fast/dom/shadow/style-and-shadow-element.html
diff --git a/LayoutTests/fast/dom/shadow/style-and-shadow-element.html b/LayoutTests/fast/dom/shadow/style-and-shadow-element.html
index 1d139de171ff74cb9e042ce9f7d3e8437d12c20e..ca3d4dab9315a35471936f59f4e6036c988f566f 100644
--- a/LayoutTests/fast/dom/shadow/style-and-shadow-element.html
+++ b/LayoutTests/fast/dom/shadow/style-and-shadow-element.html
@@ -9,24 +9,6 @@
<pre id='console'></pre>
</body>
<script>
-function backgroundColorOf(node)
-{
- return document.defaultView.getComputedStyle(node, null).getPropertyValue('background-color');
-}
-
-function backgroundColorShouldBe(selector, color)
-{
- var text = 'backgroundColorOf(getNodeInTreeOfTrees("' + selector + '"))';
- shouldBeEqualToString(text, color);
-}
-
-function backgroundColorShouldNotBe(selector, color)
-{
- var text = 'backgroundColorOf(getNodeInTreeOfTrees("' + selector + '"))';
- var unevaledString = '"' + color.replace(/\\/g, "\\\\").replace(/"/g, "\"") + '"';
- shouldNotBe(text, unevaledString);
-}
-
function cleanUp()
{
document.getElementById('sandbox').innerHTML = '';
@@ -95,4 +77,3 @@ backgroundColorShouldBe('host', 'rgb(0, 128, 0)');
cleanUp();
</script>
</html>
-
« no previous file with comments | « LayoutTests/fast/dom/shadow/resources/shadow-dom.js ('k') | LayoutTests/fast/dom/shadow/style-and-shadow-element-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698