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

Side by Side Diff: tests/html/typing_test.dart

Issue 231413003: using unittest via package import (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 6 years, 8 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
« no previous file with comments | « tests/html/typed_arrays_simd_test.dart ('k') | tests/html/unknownelement_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library TypingTest; 1 library TypingTest;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import 'package:unittest/unittest.dart';
3 import '../../pkg/unittest/lib/html_config.dart'; 3 import 'package:unittest/html_config.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 5
6 main() { 6 main() {
7 useHtmlConfiguration(); 7 useHtmlConfiguration();
8 8
9 var isStyleSheetList = 9 var isStyleSheetList =
10 predicate((x) => x is List<StyleSheet>, 'is a List<StyleSheet>'); 10 predicate((x) => x is List<StyleSheet>, 'is a List<StyleSheet>');
11 11
12 test('NodeList', () { 12 test('NodeList', () {
13 List<Node> asList = window.document.queryAll('body'); 13 List<Node> asList = window.document.queryAll('body');
(...skipping 14 matching lines...) Expand all
28 // Check it's Iterable. 28 // Check it's Iterable.
29 int counter = 0; 29 int counter = 0;
30 for (StyleSheet styleSheet in window.document.styleSheets) { 30 for (StyleSheet styleSheet in window.document.styleSheets) {
31 counter++; 31 counter++;
32 } 32 }
33 33
34 // There is one style sheet from the unittest framework. 34 // There is one style sheet from the unittest framework.
35 expect(counter, 1); 35 expect(counter, 1);
36 }); 36 });
37 } 37 }
OLDNEW
« no previous file with comments | « tests/html/typed_arrays_simd_test.dart ('k') | tests/html/unknownelement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698