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

Side by Side Diff: third_party/WebKit/LayoutTests/images/natural-dimensions-correct-after-image-reset.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>crbug.com/468915: Resetting or removing the src attribute should reset th e image immediately, rather than waiting for an asynchronous load to do it.</tit le> 2 <title>crbug.com/468915: Resetting or removing the src attribute should reset th e image immediately, rather than waiting for an asynchronous load to do it.</tit le>
3 <script src="../../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script> 5 <script>
6 async_test(function(t) { 6 async_test(function(t) {
7 var img = new Image(); 7 var img = new Image();
8 img.onload = t.step_func_done(function() { 8 img.onload = t.step_func_done(function() {
9 assert_equals(img.naturalWidth, 16); 9 assert_equals(img.naturalWidth, 16);
10 img.removeAttribute('src'); 10 img.removeAttribute('src');
11 assert_equals(img.naturalWidth, 0); 11 assert_equals(img.naturalWidth, 0);
12 }); 12 });
13 img.src = 'resources/green.jpg'; 13 img.src = 'resources/green.jpg';
14 }); 14 });
15 </script> 15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698