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

Unified Diff: dart/frog/tests/leg/src/LinkTest.dart

Issue 8566003: Revert various changes to Link factories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: frogsh Created 9 years, 1 month 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 | « dart/frog/leg/util/link_implementation.dart ('k') | dart/frog/type.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/tests/leg/src/LinkTest.dart
diff --git a/dart/frog/tests/leg/src/LinkTest.dart b/dart/frog/tests/leg/src/LinkTest.dart
index e6a7f36c08e770d118de57ca798abab82535a03c..34d77ae2ea01a9a6fd78f97967f14b485536aebd 100644
--- a/dart/frog/tests/leg/src/LinkTest.dart
+++ b/dart/frog/tests/leg/src/LinkTest.dart
@@ -6,12 +6,13 @@
#import('../../../leg/util/util_implementation.dart');
main() {
- test(LinkFactory.createLink('three').prepend(2).prepend('one'),
+ test(new Link<Comparable>('three').prepend(2).prepend('one'),
['one', 2, 'three']);
- test(LinkFactory.createLink(3).prepend('two').prepend(1), [1, 'two', 3]);
- test(LinkFactory.createLink('single'), ['single']);
+ test(new Link<Comparable>(3).prepend('two').prepend(1), [1, 'two', 3]);
+ test(new Link<String>('single'), ['single']);
test(new LinkTail(), []);
- testFromList([]);
+ // TODO(ahe): Fails in checked mode.
Ivan Posva 2011/11/14 16:32:21 Please verify whether this statement is still corr
ahe 2011/11/15 16:12:40 It isn't, and I have remove the comment in a new C
+ // testFromList([]);
testFromList([0]);
testFromList([0, 1]);
testFromList([0, 1, 2]);
@@ -21,7 +22,7 @@ main() {
}
testFromList(List list) {
- test(LinkFactory.createFromList(list), list);
+ test(new Link.fromList(list), list);
}
test(Link link, List list) {
« no previous file with comments | « dart/frog/leg/util/link_implementation.dart ('k') | dart/frog/type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698