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

Unified Diff: pkg/polymer/lib/elements/polymer-ajax/test/html/polymer-ajax.html

Issue 175443005: [polymer] import all elements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: updated from bower Created 6 years, 10 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: pkg/polymer/lib/elements/polymer-ajax/test/html/polymer-ajax.html
diff --git a/pkg/polymer/lib/elements/polymer-ajax/test/html/polymer-ajax.html b/pkg/polymer/lib/elements/polymer-ajax/test/html/polymer-ajax.html
new file mode 100644
index 0000000000000000000000000000000000000000..c244ada5b757d0d9ac225eb0fbb5fb2ebf2efb8d
--- /dev/null
+++ b/pkg/polymer/lib/elements/polymer-ajax/test/html/polymer-ajax.html
@@ -0,0 +1,30 @@
+<!doctype html>
+<html>
+<head>
+ <title>polymer-ajax</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-ajax.html">
+</head>
+<body>
+
+ <polymer-ajax
+ url="http://gdata.youtube.com/feeds/api/videos/"
+ params='{"alt":"json", "q":"chrome"}'
+ handleAs="json"
+ auto
+ ></polymer-ajax>
+
+ <script>
+ var assert = chai.assert;
+ document.addEventListener('polymer-ready', function() {
+ var ajax = document.querySelector('polymer-ajax');
+ ajax.addEventListener("polymer-response", function(event) {
+ assert.isTrue(event.detail.response.feed.entry.length > 0);
+ done();
+ });
+ });
+ </script>
+</body>
+</html>
« no previous file with comments | « pkg/polymer/lib/elements/polymer-ajax/polymer-xhr.html ('k') | pkg/polymer/lib/elements/polymer-ajax/test/js/polymer-ajax.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698