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

Side by Side Diff: LayoutTests/css3/compositing/isolation-parsing.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script> 5 <script>
6 function setProperty(value) { 6 function setProperty(value) {
7 var div = document.createElement('div'); 7 var div = document.createElement('div');
8 document.body.appendChild(div); 8 document.body.appendChild(div);
9 div.style.setProperty("isolation", value); 9 div.style.setProperty("isolation", value);
10 10
11 var computedValue = getComputedStyle(div).getPropertyValue("isolatio n"); 11 var computedValue = getComputedStyle(div).getPropertyValue("isolatio n");
12 document.body.removeChild(div); 12 document.body.removeChild(div);
13 13
14 return computedValue; 14 return computedValue;
15 } 15 }
16 16
17 function test(value, expected) { 17 function test(value, expected) {
18 shouldBeEqualToString('setProperty("' + value + '")', expected); 18 shouldBeEqualToString('setProperty("' + value + '")', expected);
19 } 19 }
20 20
21 test("auto", "auto"); 21 test("auto", "auto");
22 test("isolate", "isolate"); 22 test("isolate", "isolate");
23 test("", "auto"); 23 test("", "auto");
24 test("rubbish", "auto"); 24 test("rubbish", "auto");
25 </script> 25 </script>
26 <script src="../../fast/js/resources/js-test-post.js"></script>
27 </body> 26 </body>
28 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698