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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/onload-event-when-reloading-image-after-interrupted-broken-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/bad-png.png';
10 // Load an image.
11 img.src = resetImage;
12 img.src = testImage;
13 // Make a request for a broken image which doesn't get the chance to
14 // complete before we attempt to load the same image again.
15 img.onload = t.step_func(function() {
16 img.src = resetImage;
17 img.src = testImage;
18 img.onload = t.step_func_done();
19 });
20 });
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698