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

Side by Side Diff: sky/tests/resources/event-sender.dart

Issue 990493002: Make package: work like Dart expects in preparation for a Sky SDK (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Made deploy_sdk 100x faster in the --dev-environment case Created 5 years, 9 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import "/sky/framework/embedder.dart";
6 import "dart:async"; 5 import "dart:async";
7 import "dart:sky"; 6 import "dart:sky";
8 import "dart:sky.internals" as internals; 7 import "dart:sky.internals" as internals;
9 import "package:mojo/services/input_events/public/interfaces/input_event_constan ts.mojom.dart" as constants; 8 import "package:mojo/services/input_events/public/interfaces/input_event_constan ts.mojom.dart" as constants;
10 import "package:mojo/services/input_events/public/interfaces/input_events.mojom. dart" as events; 9 import "package:mojo/services/input_events/public/interfaces/input_events.mojom. dart" as events;
11 import "package:mojo/services/input_events/public/interfaces/input_key_codes.moj om.dart" as codes; 10 import "package:mojo/services/input_events/public/interfaces/input_key_codes.moj om.dart" as codes;
11 import "package:sky/framework/embedder.dart";
12 import "package:sky/services/testing/test_harness.mojom.dart" as harness; 12 import "package:sky/services/testing/test_harness.mojom.dart" as harness;
13 13
14 bool _isDone = false; 14 bool _isDone = false;
15 int _keyPressesRemaining = 0; 15 int _keyPressesRemaining = 0;
16 16
17 final Set<int> _chars = new Set.from([ 17 final Set<int> _chars = new Set.from([
18 codes.KeyboardCode_A, 18 codes.KeyboardCode_A,
19 codes.KeyboardCode_B, 19 codes.KeyboardCode_B,
20 codes.KeyboardCode_C, 20 codes.KeyboardCode_C,
21 codes.KeyboardCode_D, 21 codes.KeyboardCode_D,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 ..unmodifiedText = keyCode)); 100 ..unmodifiedText = keyCode));
101 } 101 }
102 } 102 }
103 103
104 void done() { 104 void done() {
105 if (_isDone) 105 if (_isDone)
106 throw "Already done."; 106 throw "Already done.";
107 _isDone = true; 107 _isDone = true;
108 _checkComplete(); 108 _checkComplete();
109 } 109 }
OLDNEW
« sky/sdk/README.md ('K') | « sky/sdk/README.md ('k') | sky/tests/services/event-sender.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698