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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/cssimagesetvalue-crash.html

Issue 2203773002: Add support for "image-set" Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 <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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698