| Index: LayoutTests/dart/spawn-dom-uri.html
|
| diff --git a/LayoutTests/dart/spawn-dom-uri.html b/LayoutTests/dart/spawn-dom-uri.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..52616d39609f0beeab191e9ffed633602405a6bb
|
| --- /dev/null
|
| +++ b/LayoutTests/dart/spawn-dom-uri.html
|
| @@ -0,0 +1,41 @@
|
| +<html>
|
| +<body>
|
| +
|
| +<script>
|
| +if (window.testRunner) {
|
| + window.testRunner.dumpAsText();
|
| + window.testRunner.waitUntilDone();
|
| +}
|
| +</script>
|
| +
|
| +<div id="dart">
|
| +import 'dart:js';
|
| +
|
| +void main() {
|
| + print("Hello World");
|
| + context['testRunner'].callMethod('notifyDone', []);
|
| +}
|
| +</div>
|
| +
|
| +<script type="application/dart">
|
| +import 'dart:html';
|
| +import 'dart:isolate';
|
| +import 'dart:js';
|
| +
|
| +void main() {
|
| + var code = querySelector('#dart');
|
| + var dataUri = 'data:application/dart;base64,${window.btoa(code.text)}';
|
| + // TODO(17738): Expand this test to validate parameters are passed and
|
| + // the correct future is returned.
|
| + try {
|
| + Future<Isolate> isolate = spawnDomUri(Uri.parse(dataUri), [], null);
|
| + } catch (e) {
|
| + print("Spawn failed: $e");
|
| + context['testRunner'].callMethod('notifyDone', []);
|
| + }
|
| + code.remove();
|
| +}
|
| +</script>
|
| +
|
| +</body>
|
| +</html>
|
|
|