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

Side by Side Diff: samples/third_party/todomvc/test/listorder_test.dart

Issue 23678009: fixed TodoMVC tests to include deploying to JS (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 todomvc.test.listorder_test; 5 library todomvc.test.listorder_test;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:polymer/polymer.dart'; 8 import 'package:polymer/polymer.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'package:unittest/html_config.dart'; 10 import 'package:unittest/html_config.dart';
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 performMicrotaskCheckpoint(); 48 performMicrotaskCheckpoint();
49 expect(root.queryAll('#todo-list li[is=todo-row]').length, 1); 49 expect(root.queryAll('#todo-list li[is=todo-row]').length, 1);
50 }); 50 });
51 51
52 test('navigate back to #/', () { 52 test('navigate back to #/', () {
53 windowLocation.hash = '#/'; 53 windowLocation.hash = '#/';
54 performMicrotaskCheckpoint(); 54 performMicrotaskCheckpoint();
55 expect(root.queryAll('#todo-list li[is=todo-row]').length, 3); 55 expect(root.queryAll('#todo-list li[is=todo-row]').length, 3);
56 }); 56 });
57 } 57 }
58
Siggi Cherem (dart-lang) 2013/08/30 23:22:13 revert =)
Jennifer Messerly 2013/09/04 04:36:40 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698