Changeset 218085 in webkit
- Timestamp:
- Jun 11, 2017 10:02:38 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r218083 r218085 1 2017-06-11 Myles C. Maxfield <mmaxfield@apple.com> 2 3 fast/text/variations/getComputedStyle.html does not need to be asynchronous 4 https://bugs.webkit.org/show_bug.cgi?id=173246 5 <rdar://problem/31393842> 6 7 Reviewed by Sam Weinig. 8 9 I dont know why I made it asynchronous in the first place. 10 11 * fast/text/variations/getComputedStyle.html: 12 1 13 2017-06-09 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/LayoutTests/fast/text/variations/getComputedStyle.html
r211060 r218085 21 21 <div id="test7" style="font-family: 'Boxis'; font-variation-settings: 'hght' 999999;">a</div> 22 22 <script> 23 window.jsTestIsAsync = true; 24 25 var promises = []; 26 27 document.fonts.forEach(function(f) { 28 promises.push(f.loaded); 29 }); 30 31 Promise.all(promises).then(function() { 32 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test0')).getPropertyValue('font-variation-settings')", "'hght' 400"); 33 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test1')).getPropertyValue('font-variation-settings')", "'hght' 500"); 34 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings')", "'wdth' 500, 'hght' 400"); 35 shouldBe("window.getComputedStyle(document.getElementById('test3')).getPropertyValue('font-variation-settings')", "window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings')"); 36 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test4')).getPropertyValue('font-variation-settings')", "normal"); 37 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test5')).getPropertyValue('font-variation-settings')", "normal"); 38 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test6')).getPropertyValue('font-variation-settings')", "normal"); 39 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test7')).getPropertyValue('font-variation-settings')", "'hght' 999999"); 40 finishJSTest(); 41 }); 23 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test0')).getPropertyValue('font-variation-settings')", "'hght' 400"); 24 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test1')).getPropertyValue('font-variation-settings')", "'hght' 500"); 25 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings')", "'wdth' 500, 'hght' 400"); 26 shouldBe("window.getComputedStyle(document.getElementById('test3')).getPropertyValue('font-variation-settings')", "window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings')"); 27 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test4')).getPropertyValue('font-variation-settings')", "normal"); 28 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test5')).getPropertyValue('font-variation-settings')", "normal"); 29 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test6')).getPropertyValue('font-variation-settings')", "normal"); 30 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test7')).getPropertyValue('font-variation-settings')", "'hght' 999999"); 42 31 </script> 43 32 <script src="../../../resources/js-test-post.js"></script>
Note: See TracChangeset
for help on using the changeset viewer.