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

Unified Diff: LayoutTests/dart/spawn-dom-uri.html

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/dart/security/resources/cross-frame-access-iframe.html ('k') | LayoutTests/dart/spawn-dom-uri-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698