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

Unified Diff: tests/html/touchlist_test.dart

Issue 12194010: Added constructor for touchlist. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/touchlist_test.dart
diff --git a/tests/html/touchevent_test.dart b/tests/html/touchlist_test.dart
similarity index 61%
copy from tests/html/touchevent_test.dart
copy to tests/html/touchlist_test.dart
index 8d90e5b4378cd8d7a7e9dd86ee4c09b3884c33ed..14ced38ff6058d4350247d91f7dc6eccda1d3e94 100644
--- a/tests/html/touchevent_test.dart
+++ b/tests/html/touchlist_test.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library touch_event_test;
+library touch_list_test;
Emily Fortuna 2013/02/03 22:24:28 the diff is strange on this. This is a new test. I
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_individual_config.dart';
import 'dart:html';
@@ -12,18 +12,17 @@ main() {
group('supported', () {
test('supported', () {
- expect(TouchEvent.supported, true);
+ expect(TouchList.supported, true);
});
});
group('functional', () {
- test('unsupported throws', () {
- var expectation = TouchEvent.supported ? returnsNormally : throws;
-
- expect(() {
- var e = new TouchEvent(null, null, null, 'touch');
- expect(e is TouchEvent, true);
- }, expectation);
+ test('touchlist constructor', () {
+ if (TouchList.supported) {
+ var list = new TouchList();
+ expect(list, isNotNull);
+ expect(list is TouchList, true);
+ }
});
});
}
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698