OLD | NEW |
(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 |
OLD | NEW |