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

Unified Diff: samples/polymer_intl/test/polymer_intl_test.dart

Issue 105073003: Adds a sample for polymer internationalization/localization (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes from review Created 7 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 | « samples/polymer_intl/pubspec.yaml ('k') | samples/polymer_intl/test/polymer_intl_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/polymer_intl/test/polymer_intl_test.dart
diff --git a/samples/searchable_list/test/demo_app_test.dart b/samples/polymer_intl/test/polymer_intl_test.dart
similarity index 78%
copy from samples/searchable_list/test/demo_app_test.dart
copy to samples/polymer_intl/test/polymer_intl_test.dart
index 564cef3f72ac0b6949245ceab4809c95d84a3cd6..7e82a2f52653ba751f1fda6a3a9bfd4e625ccd52 100644
--- a/samples/searchable_list/test/demo_app_test.dart
+++ b/samples/polymer_intl/test/polymer_intl_test.dart
@@ -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 todomvc.test.markdone_test;
+library polymer_intl_test;
import 'dart:async';
import 'dart:html';
import 'package:polymer/polymer.dart';
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
-import '../web/elements/demo_app.dart';
+import '../web/localized.dart';
/**
* A trivial test to get the analyzer plugged into this sample. See
@@ -23,8 +23,8 @@ main() {
test('loading the element', () {
return new Future(() {
- var demoApp = querySelector('demo-app');
- expect(demoApp is DemoApp, isTrue);
+ var localized = querySelector('localized-example');
+ expect(localized is LocalizedExampleElement, isTrue);
});
});
}
« no previous file with comments | « samples/polymer_intl/pubspec.yaml ('k') | samples/polymer_intl/test/polymer_intl_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698