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

Side by Side Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html

Issue 2099513002: [Typed OM] Rename TransformValue -> CSSTransformValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-transformcomponent
Patch Set: sync to head Created 4 years, 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 4
5 <div id="testElement"></div> 5 <div id="testElement"></div>
6 6
7 <script> 7 <script>
8 8
9 test(function() { 9 test(function() {
10 var transform = new TransformValue([new CSSRotation(20)]); 10 var transform = new CSSTransformValue([new CSSRotation(20)]);
11 11
12 assert_equals(testElement.styleMap.get('transform'), null); 12 assert_equals(testElement.styleMap.get('transform'), null);
13 13
14 testElement.styleMap.set('transform', transform); 14 testElement.styleMap.set('transform', transform);
15 assert_equals(testElement.style.transform, 'rotate(20deg)'); 15 assert_equals(testElement.style.transform, 'rotate(20deg)');
16 }, "Setting transform works on a regular element."); 16 }, "Setting transform works on a regular element.");
17 17
18 18
19 </script> 19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698