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

Unified Diff: samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/test/html/polymer-selection.html

Issue 1576153002: Remove the Dromaeo and TodoMVC samples. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
Index: samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/test/html/polymer-selection.html
diff --git a/samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/test/html/polymer-selection.html b/samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/test/html/polymer-selection.html
deleted file mode 100644
index 114989012c8e0d045b300e9334394a0909d6a0e2..0000000000000000000000000000000000000000
--- a/samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/test/html/polymer-selection.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title>polymer-selection</title>
- <script src="../../../platform/platform.js"></script>
- <script src="../../../tools/test/htmltest.js"></script>
- <script src="../../../tools/test/chai/chai.js"></script>
- <link rel="import" href="../../polymer-selection.html">
-</head>
-<body>
-
- <polymer-selection></polymer-selection>
-
- <script>
- var assert = chai.assert;
- document.addEventListener('polymer-ready', function() {
- var s = document.querySelector('polymer-selection');
- s.addEventListener("polymer-select", function(event) {
- if (test === 1) {
- // check test1
- assert.isTrue(event.detail.isSelected);
- assert.equal(event.detail.item, '(item)');
- assert.isTrue(s.isSelected(event.detail.item));
- assert.isFalse(s.isSelected('(some_item_not_selected)'));
- // test2
- test++;
- s.select(null);
- } else if (test === 2) {
- // check test2
- assert.isFalse(event.detail.isSelected);
- assert.equal(event.detail.item, '(item)');
- assert.isFalse(s.isSelected(event.detail.item));
- done();
- }
- });
- // test1
- var test = 1;
- s.select('(item)');
- });
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698