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

Side by Side Diff: LayoutTests/fast/css/getComputedStyle/getComputedStyle-outline-offset.html

Issue 703793002: Remove some testing of getPropertyCSSValue in fast/css/getComputedStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <script src="../../../resources/js-test.js"></script> 5 <script src="../../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 9
10 description("Test to make sure outline-offset is found in the computed style.") 10 description("Test to make sure outline-offset is found in the computed style.")
11 11
12 var testContainer = document.createElement("div"); 12 var testContainer = document.createElement("div");
13 document.body.appendChild(testContainer); 13 document.body.appendChild(testContainer);
14 14
15 testContainer.innerHTML = '<div id="test" style="outline: 2px solid black">hello </div>'; 15 testContainer.innerHTML = '<div id="test" style="outline: 2px solid black">hello </div>';
16 16
17 e = document.getElementById('test'); 17 e = document.getElementById('test');
18 e.contentEditable = true; 18 e.contentEditable = true;
19 19
20 e.style.outlineOffset = "2px"; 20 e.style.outlineOffset = "2px";
21 computedStyle = window.getComputedStyle(e); 21 computedStyle = window.getComputedStyle(e);
22 shouldBe("computedStyle.getPropertyValue('outline-offset')", "'2px'"); 22 shouldBe("computedStyle.getPropertyValue('outline-offset')", "'2px'");
23 shouldBe("computedStyle.getPropertyCSSValue('outline-offset').getFloatValue(CSSP rimitiveValue.CSS_PX)", "2");
24 23
25 document.body.removeChild(testContainer); 24 document.body.removeChild(testContainer);
26 25
27 </script> 26 </script>
28 </body> 27 </body>
29 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698