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

Unified Diff: tests/html/location_test.dart

Issue 10534130: Wrap Location object on Firefox. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « lib/html/src/frog_LocationWrapper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/location_test.dart
diff --git a/tests/html/location_test.dart b/tests/html/location_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..79dba7cdc286877b270b1d6edf5d386934cfb528
--- /dev/null
+++ b/tests/html/location_test.dart
@@ -0,0 +1,18 @@
+#library('LocationTest');
+#import('../../lib/unittest/unittest.dart');
+#import('../../lib/unittest/html_config.dart');
+#import('dart:html');
+
+main() {
+ useHtmlConfiguration();
+
+ test('location hash', () {
+ final location = window.location;
+ Expect.isTrue(location is Location);
+
+ // The only navigation we dare try is hash.
+ location.hash = 'hello';
+ var h = location.hash;
+ Expect.equals('#hello', h);
+ });
+}
« no previous file with comments | « lib/html/src/frog_LocationWrapper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698