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

Side by Side Diff: pkg/polymer_expressions/test/eval_test.dart

Issue 196603029: Fix test timeouts. I forgot to include observe/mirrors_used.dart in tests from (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library eval_test; 5 library eval_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 // Import mirrors to cause all mirrors to be retained by dart2js. 9 // Import mirrors to cause all mirrors to be retained by dart2js.
10 // The tests reflect on LinkedHashMap.length and String.length. 10 // The tests reflect on LinkedHashMap.length and String.length.
11 import 'dart:mirrors'; 11 import 'dart:mirrors';
12 12
13 import 'package:polymer_expressions/eval.dart'; 13 import 'package:polymer_expressions/eval.dart';
14 import 'package:polymer_expressions/filter.dart'; 14 import 'package:polymer_expressions/filter.dart';
15 import 'package:polymer_expressions/parser.dart'; 15 import 'package:polymer_expressions/parser.dart';
16 import 'package:unittest/unittest.dart'; 16 import 'package:unittest/unittest.dart';
17 import 'package:observe/observe.dart'; 17 import 'package:observe/observe.dart';
18 import 'package:observe/mirrors_used.dart'; // make test smaller.
18 19
19 main() { 20 main() {
20 reflectClass(Object); // suppress unused import warning 21 reflectClass(Object); // suppress unused import warning
21 22
22 group('eval', () { 23 group('eval', () {
23 test('should return the model for an empty expression', () { 24 test('should return the model for an empty expression', () {
24 expectEval('', 'model', 'model'); 25 expectEval('', 'model', 'model');
25 }); 26 });
26 27
27 test('should handle the "this" keyword', () { 28 test('should handle the "this" keyword', () {
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 return Future.wait([future, new Future(() { 429 return Future.wait([future, new Future(() {
429 expect(passed, true, reason: "Didn't receive a change notification on $s"); 430 expect(passed, true, reason: "Didn't receive a change notification on $s");
430 })]); 431 })]);
431 } 432 }
432 433
433 // Regression test from https://code.google.com/p/dart/issues/detail?id=13459 434 // Regression test from https://code.google.com/p/dart/issues/detail?id=13459
434 class WordElement extends Observable { 435 class WordElement extends Observable {
435 @observable List chars1 = 'abcdefg'.split(''); 436 @observable List chars1 = 'abcdefg'.split('');
436 @reflectable List filteredList(List original) => [original[0], original[1]]; 437 @reflectable List filteredList(List original) => [original[0], original[1]];
437 } 438 }
OLDNEW
« no previous file with comments | « pkg/polymer_expressions/test/bindings_test.dart ('k') | pkg/polymer_expressions/test/globals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698