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

Unified Diff: LayoutTests/fast/backgrounds/repeat/resources/background-repeat-shorthand.js

Issue 14619018: As discussed in blink-dev mailing list remove getPropertyShorthand and isImplicit from the Web expo… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/fast/backgrounds/repeat/resources/background-repeat-shorthand.js
diff --git a/LayoutTests/fast/backgrounds/repeat/resources/background-repeat-shorthand.js b/LayoutTests/fast/backgrounds/repeat/resources/background-repeat-shorthand.js
deleted file mode 100644
index a40a6dbe16d5ae9f64ba523dc66a61ecc90750b5..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/backgrounds/repeat/resources/background-repeat-shorthand.js
+++ /dev/null
@@ -1,49 +0,0 @@
-description('This layout test used to test that correct shorthand name ' +
- 'is returned for background-repeat-x, ' +
- 'background-repeat-y, background-position-x, background-position-y, ' +
- '-webkit-mask-repeat-x,-webkit-mask-repeat-y, -webkit-mask-position-x, ' +
- '-webkit-mask-position-y when corresponding shorthand is used in the style ' +
- 'declaration. It tests regression described in ' +
- '<a href="https://bugs.webkit.org/show_bug.cgi?id=28972">this bug</a>.' +
- ' Now that access to non author stylesheet is blocked, we should instead' +
- ' get null when accessing the css rules on that object.');
-
-function getShorthand(longhand, iconId)
-{
- var iconDiv = document.getElementById(iconId);
- var rules = window.getMatchedCSSRules(iconDiv,'',false);
- return rules[1] ? rules[1].style.getPropertyShorthand(longhand) : 'null';
-}
-
-shouldBe('getShorthand("background-repeat-x", "icon1")', '"null"');
-shouldBe('getShorthand("background-repeat-y", "icon1")', '"null"');
-shouldBe('getShorthand("background-repeat", "icon1")', '"null"');
-
-shouldBe('getShorthand("background-position-x", "icon1")', '"null"');
-shouldBe('getShorthand("background-position-y", "icon1")', '"null"');
-shouldBe('getShorthand("background-position", "icon1")', '"null"');
-
-shouldBe('getShorthand("-webkit-mask-repeat-x", "icon1")', '"null"');
-shouldBe('getShorthand("-webkit-mask-repeat-y", "icon1")', '"null"');
-shouldBe('getShorthand("-webkit-mask-repeat", "icon1")', '"null"');
-
-shouldBe('getShorthand("-webkit-mask-position-x", "icon1")', '"null"');
-shouldBe('getShorthand("-webkit-mask-position-y", "icon1")', '"null"');
-shouldBe('getShorthand("-webkit-mask-repeat", "icon1")', '"null"');
-
-
-shouldBe('getShorthand("background-repeat-x", "icon2")', '"null"');
-shouldBe('getShorthand("background-repeat-y", "icon2")', '"null"');
-shouldBe('getShorthand("background-repeat", "icon2")', '"null"');
-
-shouldBe('getShorthand("background-position-x", "icon2")', '"null"');
-shouldBe('getShorthand("background-position-y", "icon2")', '"null"');
-shouldBe('getShorthand("background-position", "icon2")', '"null"');
-
-shouldBe('getShorthand("-webkit-mask-repeat-x", "icon2")', '"null"');
-shouldBe('getShorthand("-webkit-mask-repeat-y", "icon2")', '"null"');
-shouldBe('getShorthand("-webkit-mask-repeat", "icon2")', '"null"');
-
-shouldBe('getShorthand("-webkit-mask-position-x", "icon2")', '"null"');
-shouldBe('getShorthand("-webkit-mask-position-y", "icon2")', '"null"');
-shouldBe('getShorthand("-webkit-mask-repeat", "icon2")', '"null"');

Powered by Google App Engine
This is Rietveld 408576698