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

Unified Diff: utils/tests/pub/yaml_test.dart

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « utils/tests/pub/version_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/yaml_test.dart
===================================================================
--- utils/tests/pub/yaml_test.dart (revision 14440)
+++ utils/tests/pub/yaml_test.dart (working copy)
@@ -2,14 +2,14 @@
// 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('yaml_test');
+library yaml_test;
-#import('dart:math');
+import 'dart:math';
-#import('../../../pkg/unittest/unittest.dart');
-#import('../../pub/yaml/yaml.dart');
-#import('../../pub/yaml/deep_equals.dart');
-#import('../../../tests/utils/test_utils.dart');
+import '../../../pkg/unittest/lib/unittest.dart';
+import '../../pub/yaml/yaml.dart';
+import '../../pub/yaml/deep_equals.dart';
+import '../../../tests/utils/test_utils.dart';
/** Constructs a new yaml.YamlMap, optionally from a normal Map. */
Map yamlMap([Map from]) =>
@@ -44,8 +44,8 @@
_expectKeyWorks(keyFn()) {
var map = yamlMap();
map[keyFn()] = 5;
- Expect.isTrue(map.containsKey(keyFn()));
- Expect.equals(5, map[keyFn()]);
+ expect(map.containsKey(keyFn()), isTrue);
+ expect(map[keyFn()], 5);
}
test('null', () => _expectKeyWorks(() => null));
@@ -59,14 +59,14 @@
test('works as a hash key', () {
var normalMap = new Map();
normalMap[yamlMap({'foo': 'bar'})] = 'baz';
- Expect.isTrue(normalMap.containsKey(yamlMap({'foo': 'bar'})));
- Expect.equals('baz', normalMap[yamlMap({'foo': 'bar'})]);
+ expect(normalMap.containsKey(yamlMap({'foo': 'bar'})), isTrue);
+ expect(normalMap[yamlMap({'foo': 'bar'})], 'baz');
});
test('treats YamlMap keys the same as normal maps', () {
var map = yamlMap();
map[{'a': 'b'}] = 5;
- Expect.equals(5, map[yamlMap({'a': 'b'})]);
+ expect(map[yamlMap({'a': 'b'})], 5);
});
});
« no previous file with comments | « utils/tests/pub/version_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698