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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/onload-event-when-reloading-image-after-successful-image-load.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
(Empty)
1 <!DOCTYPE html>
2 <title>crbug.com/469678: We should fire an image load event even if the image is the last one we loaded successfully.</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 async_test(function(t) {
7 var img = new Image();
8 var testImage = 'resources/green.jpg';
9 var resetImage = 'resources/green.jpg';
10 // In this test we load an image then we immediately launch another request
11 // for the same image - only one load event should be fired. Then we do the
12 // same again: another load event should be fired.
13 img.onload = t.step_func(function() {
14 img.src = resetImage;
15 img.src = testImage;
16 img.onload = t.step_func_done();
17 });
18 img.src = resetImage;
19 img.src = testImage;
20 });
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698