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

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

Issue 1371853003: Add a Layout Test for the fix a use-after-free in CSSImageSetValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase test Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 </style>
5 <div id="target"></div>
6 <script>
7 target.style.backgroundImage = "-webkit-image-set(url(test1.png) 1x, url(test2.p ng) 2x)";
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)';
10 assert_equals(getComputedStyle(target).backgroundImage, expected);
11 assert_equals(target.style.backgroundImage, '-webkit-image-set(url("test1.png" ) 1x, url("test2.png") 2x)');
12 }, 'Testing serialization of -webkit-image-set');
13
14 </script>
15 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698