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

Side by Side Diff: LayoutTests/imported/web-platform-tests/FileAPI/FileReader/Progress_event_bubbles_cancelable.html

Issue 1236713002: Import FileAPI tests from web-platform-tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh, stupid baselines Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>File API Test: Progress Event - bubbles, cancelable</title>
4 <link rel="author" title="Intel" href="http://www.intel.com">
5 <link rel="help" href="http://www.w3.org/TR/FileAPI/#events">
6 <script src="../../../../resources/testharness.js"></script>
7 <script src="../../../../resources/testharnessreport.js"></script>
8 <div id="log"></div>
9 <script>
10 async_test(function(){
11 var blob = new Blob(["TEST"]);
12 var reader = new FileReader();
13
14 reader.onloadstart = this.step_func(function(evt) {
15 assert_false(evt.bubbles, "The bubbles must be false when the event is dis patched");
16 assert_false(evt.cancelable, "The cancelable must be false when the event is dispatched");
17 });
18
19 reader.onload = this.step_func(function(evt) {
20 assert_false(evt.bubbles, "The bubbles must be false when the event is dis patched");
21 assert_false(evt.cancelable, "The cancelable must be false when the event is dispatched");
22 });
23
24 reader.onloadend = this.step_func(function(evt) {
25 assert_false(evt.bubbles, "The bubbles must be false when the event is dis patched");
26 assert_false(evt.cancelable, "The cancelable must be false when the event is dispatched");
27 this.done();
28 });
29
30 reader.readAsText(blob);
31 }, "Check the values of bubbles and cancelable are false when the progress eve nt is dispatched");
32 </script>
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698