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

Unified Diff: pkg/mdv_observe/test/utils.dart

Issue 14732003: Implement Model-Driven-Views spec for Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: try upload again Created 7 years, 7 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: pkg/mdv_observe/test/utils.dart
diff --git a/utils/tests/testrunner/layout_tests/web/layout_test.dart b/pkg/mdv_observe/test/utils.dart
old mode 100755
new mode 100644
similarity index 53%
copy from utils/tests/testrunner/layout_tests/web/layout_test.dart
copy to pkg/mdv_observe/test/utils.dart
index eead227404a3b53faf70f6f9315c075f50d2f1d9..5dd5e381673d55e6cd54ea7ef59bbe3ff1bc9f76
--- a/utils/tests/testrunner/layout_tests/web/layout_test.dart
+++ b/pkg/mdv_observe/test/utils.dart
@@ -2,16 +2,11 @@
// 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 testrunner_test;
+library mdv_observe.test.utils;
-import 'dart:html';
import 'package:unittest/unittest.dart';
-main() {
- test("layout", () {
- var lbl = new LabelElement();
- lbl.text = 'Hello Dart!';
- document.body.nodes.add(lbl);
- });
-}
-
+// TODO(jmesserly): use matchers when this is supported. For now just
+// compare to toStrings.
+expectChanges(actual, expected, {reason}) =>
+ expect('$actual', '$expected', reason: reason);

Powered by Google App Engine
This is Rietveld 408576698