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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css-typed-om/styleMap-update-function.html

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: Update failing LayoutTests Created 3 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title>styleMap objects provide an 'update' function</title> 3 <title>styleMap objects provide an 'update' function</title>
4 <meta name="author" title="Shane Stephens"> 4 <meta name="author" title="Shane Stephens">
5 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/testharnessreport.js"></script>
7 <body> 7 <body>
8 <div id='element'></div> 8 <div id='element'></div>
9 <div id="log"></div> 9 <div id="log"></div>
10 <script> 10 <script>
11 test(function() { 11 test(function() {
12 element.styleMap.set('width', new CSSSimpleLength(42, 'px')); 12 element.styleMap.set('width', new CSSUnitValue(42, 'px'));
nainar1 2017/05/16 00:20:47 This test is failing
13 element.styleMap.update('width', length => new CSSSimpleLength(length.valu e + 20, length.type)) 13 element.styleMap.update('width', length => new CSSSimpleLength(length.valu e + 20, length.type))
14 assert_equals(element.styleMap.get('width').value, 62, 'update expected to apply callback to old value in map'); 14 assert_equals(element.styleMap.get('width').value, 62, 'update expected to apply callback to old value in map');
15 }); 15 });
16 </script> 16 </script>
17 17
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698