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

Side by Side Diff: LayoutTests/transforms/resources/parsing-test-helper.js

Issue 212563007: Revert of Add runtime feature and property names for unprefixed CSS Transforms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert three patches Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 window.expect = (function() {
2 var testElement = document.getElementById('target');
3
4 function assert_equals_or_matches(actual, expected, description) {
5 return expected instanceof RegExp ?
6 assert_regexp_match(actual, expected, description) :
7 assert_equals(actual, expected, description);
8 }
9 return function expect(property, camelProperty, input) {
10 return {
11 parsesAs: function(output) {
12 test(function() {
13 assert_true(CSS.supports(property, input), 'CSS.supports');
14 testElement.style[camelProperty] = input;
15 assert_equals(testElement.style[camelProperty], output);
16 }, '"' + property + ': ' + input + ';" should parse as "' + output + '"' );
17 return this;
18 },
19 isComputedTo: function(output) {
20 test(function() {
21 testElement.style[camelProperty] = input;
22 assert_equals_or_matches(getComputedStyle(testElement)[camelProperty], output);
23 }, '"' + property + ': ' + input + ';" should be computed to "' + output + '"');
24 },
25 isInvalid: function() {
26 test(function() {
27 assert_false(CSS.supports(property, input), 'CSS.supports');
28 }, '"' + property + ': ' + input + ';" should be invalid');
29 },
30 };
31 }
32 })();
OLDNEW
« no previous file with comments | « LayoutTests/transforms/backface-visibility-parsing.html ('k') | LayoutTests/transforms/transform-style-parsing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698