Chromium Code Reviews| 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); |
| + } |
| }); |
| }); |
| } |