| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 </style> | 4 </style> |
| 5 <div id="target"></div> | 5 <div id="target"></div> |
| 6 <script> | 6 <script> |
| 7 target.style.backgroundImage = "-webkit-image-set(url(test1.png) 1x, url(test2.p
ng) 2x)"; | 7 target.style.backgroundImage = "-webkit-image-set(url(test1.png) 1x, url(test2.p
ng) 2x)"; |
| 8 test(function() { | 8 test(function() { |
| 9 var expected = '-webkit-image-set(url("' + location.href.replace('cssimagesetv
alue-crash.html', 'test1.png') + '") 1x, url("' + location.href.replace('cssimag
esetvalue-crash.html', 'test2.png') + '") 2x)'; | 9 var expected = 'image-set(url("' + location.href.replace('cssimagesetvalue-cra
sh.html', 'test1.png') + '") 1x, url("' + location.href.replace('cssimagesetvalu
e-crash.html', 'test2.png') + '") 2x)'; |
| 10 assert_equals(getComputedStyle(target).backgroundImage, expected); | 10 assert_equals(getComputedStyle(target).backgroundImage, expected); |
| 11 assert_equals(target.style.backgroundImage, '-webkit-image-set(url("test1.png"
) 1x, url("test2.png") 2x)'); | 11 assert_equals(target.style.backgroundImage, 'image-set(url("test1.png") 1x, ur
l("test2.png") 2x)'); |
| 12 }, 'Testing serialization of -webkit-image-set'); | 12 }, 'Testing serialization of image-set'); |
| 13 | 13 |
| 14 </script> | 14 </script> |
| 15 </html> | 15 </html> |
| OLD | NEW |