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

Unified Diff: test/refactor_test.dart

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
Patch Set: Created 7 years, 4 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 | « test/observable_transform_test.dart ('k') | test/run_all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/refactor_test.dart
diff --git a/test/refactor_test.dart b/test/refactor_test.dart
deleted file mode 100644
index f14c09e330b6858530340fadd0b8aebed4ac6408..0000000000000000000000000000000000000000
--- a/test/refactor_test.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2013, 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 polymer.test.refactor_test;
-
-import 'package:unittest/compact_vm_config.dart';
-import 'package:unittest/unittest.dart';
-import 'package:polymer/src/refactor.dart';
-import 'package:source_maps/span.dart';
-
-main() {
- useCompactVMConfiguration();
- var original = "0123456789abcdefghij";
- var file = new SourceFile.text('', original);
-
- test('non conflicting, in order edits', () {
- var txn = new TextEditTransaction(original, file);
- txn.edit(2, 4, '.');
- txn.edit(5, 5, '|');
- txn.edit(6, 6, '-');
- txn.edit(6, 7, '_');
- expect((txn.commit()..build('')).text, "01.4|5-_789abcdefghij");
- });
-
- test('non conflicting, out of order edits', () {
- var txn = new TextEditTransaction(original, file);
- txn.edit(2, 4, '.');
- txn.edit(5, 5, '|');
-
- // Regresion test for issue #404: there is no conflict/overlap for edits
- // that don't remove any of the original code.
- txn.edit(6, 7, '_');
- txn.edit(6, 6, '-');
- expect((txn.commit()..build('')).text, "01.4|5-_789abcdefghij");
-
- });
-
- test('non conflicting edits', () {
- var txn = new TextEditTransaction(original, file);
- txn.edit(2, 4, '.');
- txn.edit(3, 3, '-');
- expect(() => txn.commit(), throwsA(predicate(
- (e) => e.toString().contains('overlapping edits'))));
- });
-}
« no previous file with comments | « test/observable_transform_test.dart ('k') | test/run_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698