Commit 0c915f7f authored by meade's avatar meade Committed by Commit bot
Browse files

[Typed OM] Fix missing renames that broke the build

Various CLs of mine I landed near each other added new lines that used old names.
Original CLs:
https://codereview.chromium.org/2099513002/
https://codereview.chromium.org/2039093003/
https://codereview.chromium.org/2097093002/

NOPRESUBMIT=true
NOTRY=true

Review-Url: https://codereview.chromium.org/2104713002
Cr-Commit-Position: refs/heads/master@{#402348}
parent 2b73527a
......@@ -7,16 +7,16 @@
var EPSILON = 1e-6; // float epsilon
function validateTransformWithSingleRotation(transform, x, y, z, angle, cssString) {
assert_equals(transform.cssString, cssString);
function validateTransformWithSingleRotation(transform, x, y, z, angle, cssText) {
assert_equals(transform.cssText, cssText);
// Shouldn't be base StyleValue as for unsupported values.
assert_true(transform instanceof TransformValue);
assert_true(transform instanceof CSSTransformValue);
var components = [...transform.values()];
assert_equals(components.length, 1);
assert_true(components[0] instanceof CSSRotation);
assert_equals(components[0].cssString, cssString);
assert_equals(components[0].cssText, cssText);
assert_approx_equals(components[0].angle, angle, EPSILON);
assert_approx_equals(components[0].x, x, EPSILON);
......
......@@ -16,10 +16,10 @@ test(function() {
}, "Setting transform works on a regular element.");
test(function() {
var transform = new TransformValue([new CSSRotation(30)]);
var transform = new CSSTransformValue([new CSSRotation(30)]);
testElement.styleMap.set('transform', transform);
assert_equals(testElement.styleMap.get('transform').cssString, 'rotate(30deg)');
assert_equals(testElement.styleMap.get('transform').cssText, 'rotate(30deg)');
}, "Getting transform works on a regular element.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment