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

Unified Diff: samples/tests/samples/src/lib/observable/ObservableTest.dart

Issue 10253022: test rename overhaul: step 13 - samples (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: samples/tests/samples/src/lib/observable/ObservableTest.dart
diff --git a/samples/tests/samples/src/lib/observable/ObservableTest.dart b/samples/tests/samples/src/lib/observable/ObservableTest.dart
deleted file mode 100644
index e5bd5e6b9d0603e372fa0d773f4a711d7e8ec42c..0000000000000000000000000000000000000000
--- a/samples/tests/samples/src/lib/observable/ObservableTest.dart
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// 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('observable_tests');
-
-#import('dart:html');
-#import('../../../../../ui_lib/observable/observable.dart');
-#import('../../../../../../lib/unittest/unittest.dart');
-#import('../../../../../../lib/unittest/html_config.dart');
-
-#source('AbstractObservableTests.dart');
-#source('ChangeEventTests.dart');
-#source('EventBatchTests.dart');
-#source('ObservableListTests.dart');
-#source('ObservableValueTests.dart');
-
-void main() {
- useHtmlConfiguration();
- group('AbstractObservable', testAbstractObservable);
- group('ChangeEvent', testChangeEvent);
- group('EventBatch', testEventBatch);
- group('ObservableList', testObservableList);
- group('ObservableValue', testObservableValue);
-}
-
-void validateEvent(ChangeEvent e, target, pName, index, type, newVal, oldVal) {
- expect(e.target).equals(target);
- expect(e.propertyName).equals(pName);
- expect(e.index).equals(index);
- expect(e.type).equals(type);
- expect(e.newValue).equals(newVal);
- expect(e.oldValue).equals(oldVal);
-}
-
-void validateGlobal(ChangeEvent e, target) {
- validateEvent(e, target, null, null, ChangeEvent.GLOBAL, null, null);
-}
-
-void validateInsert(ChangeEvent e, target, pName, index, newVal) {
- validateEvent(e, target, pName, index, ChangeEvent.INSERT, newVal, null);
-}
-
-void validateRemove(ChangeEvent e, target, pName, index, oldVal) {
- validateEvent(e, target, pName, index, ChangeEvent.REMOVE, null, oldVal);
-}
-
-void validateUpdate(ChangeEvent e, target, pName, index, newVal, oldVal) {
- validateEvent(e, target, pName, index, ChangeEvent.UPDATE, newVal, oldVal);
-}

Powered by Google App Engine
This is Rietveld 408576698