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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/dart/dom/GeolocationTest.dart ('k') | LayoutTests/dart/dom/Workers.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import 'package:expect/expect.dart';
2 import 'package:unittest/html_config.dart';
3 import 'package:unittest/unittest.dart';
4 import 'dart:html';
5
6 main() {
7 useHtmlConfiguration(true);
8
9 test('Workers minimal', () {
10 // FIXME: once we decide how Workers and Dart go together, this may become p ure
11 // Dart test.
12 final worker = new Worker('resources/pong.js');
13 worker.onError.listen((error) => Expect.fail('error: $error'));
14 worker.onMessage.listen(expectAsync((event) {
15 Expect.equals('I am fine, thank you.', event.data);
16 }));
17 worker.postMessage('How do you do?');
18 });
19 }
OLDNEW
« 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