Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../resources/testharness.js"></script> | |
| 3 <script src="../resources/testharnessreport.js"></script> | |
| 4 <iframe width=400 height=300></iframe> | |
| 5 <script> | |
| 6 test(() => { | |
| 7 var media = document.createElement('video'); | |
| 8 media.src = 'nosuchurl'; | |
| 9 | |
| 10 var promise = media.play(); | |
| 11 if (promise != undefined) { | |
|
mlamouri (slow - plz ping)
2016/12/23 12:00:26
I don't think you need this, it will return a prom
Anton Obzhirov
2017/01/09 15:35:54
ok
| |
| 12 promise.then(() => { | |
| 13 }).catch((error) => { | |
| 14 }); | |
|
mlamouri (slow - plz ping)
2016/12/23 12:00:26
Can you make this an async_test and add unreach on
Anton Obzhirov
2017/01/09 15:35:54
Will do.
| |
| 15 } | |
| 16 window.frames[0].document.body.appendChild(media); | |
| 17 }, "Test for crbug/676004: Crash in blink::beforeCallEnteredCallback()"); | |
| 18 </script> | |
| OLD | NEW |