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

Unified Diff: tests/html/navigator_test.dart

Issue 11419294: Use language or userlanguage (IE) depending on what's defined in the browser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove parens from getter! Created 8 years 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 | « sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/navigator_test.dart
diff --git a/tests/html/b_element_test.dart b/tests/html/navigator_test.dart
similarity index 55%
copy from tests/html/b_element_test.dart
copy to tests/html/navigator_test.dart
index 1cd71b6a1e7800b8ff62c18a6438f6bca7dd5f1e..abbcc4e541930072c804bb0f7423d5425779052b 100644
--- a/tests/html/b_element_test.dart
+++ b/tests/html/navigator_test.dart
@@ -1,4 +1,4 @@
-library BElementTest;
+library NavigatorTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
@@ -6,8 +6,7 @@ import 'dart:html';
main() {
useHtmlConfiguration();
- test('create b', () {
- new Element.tag('b');
- });
+ test('language never returns null', () {
+ expect(window.navigator.language, isNotNull);
+ });
}
-
« no previous file with comments | « sdk/lib/html/templates/html/dart2js/impl_Navigator.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698