OLD | NEW |
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> |
OLD | NEW |