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

Unified Diff: LayoutTests/dart/dom/Workers.dart

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
« no previous file with comments | « LayoutTests/dart/dom/GeolocationTest.dart ('k') | LayoutTests/dart/dom/Workers.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dart/dom/Workers.dart
diff --git a/LayoutTests/dart/dom/Workers.dart b/LayoutTests/dart/dom/Workers.dart
new file mode 100644
index 0000000000000000000000000000000000000000..be7d0026bdc7c5ad4c8d78eec8ee8cf2045da617
--- /dev/null
+++ b/LayoutTests/dart/dom/Workers.dart
@@ -0,0 +1,19 @@
+import 'package:expect/expect.dart';
+import 'package:unittest/html_config.dart';
+import 'package:unittest/unittest.dart';
+import 'dart:html';
+
+main() {
+ useHtmlConfiguration(true);
+
+ test('Workers minimal', () {
+ // FIXME: once we decide how Workers and Dart go together, this may become pure
+ // Dart test.
+ final worker = new Worker('resources/pong.js');
+ worker.onError.listen((error) => Expect.fail('error: $error'));
+ worker.onMessage.listen(expectAsync((event) {
+ Expect.equals('I am fine, thank you.', event.data);
+ }));
+ worker.postMessage('How do you do?');
+ });
+}
« no previous file with comments | « LayoutTests/dart/dom/GeolocationTest.dart ('k') | LayoutTests/dart/dom/Workers.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698