| OLD | NEW |
| (Empty) |
| 1 // Runs a series of tests related to console output on a worklet. | |
| 2 // | |
| 3 // Usage: | |
| 4 // runConsoleTests(workletType); | |
| 5 function runConsoleTests(worklet, opt_path) { | |
| 6 const path = opt_path || ''; | |
| 7 | |
| 8 promise_test(function() { | |
| 9 return worklet.import(path + 'resources/console-worklet-script.js').then
(function(undefined_arg) { | |
| 10 // Results should be verified by a test expectation file. | |
| 11 }).catch(function(error) { | |
| 12 assert_unreached('unexpected rejection: ' + error); | |
| 13 }); | |
| 14 | |
| 15 }, 'Console output on a Worklet.'); | |
| 16 } | |
| OLD | NEW |