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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>polymer-ajax</title>
5 <script src="../../../platform/platform.js"></script>
6 <script src="../../../tools/test/htmltest.js"></script>
7 <script src="../../../tools/test/chai/chai.js"></script>
8 <link rel="import" href="../../polymer-ajax.html">
9 </head>
10 <body>
11
12 <polymer-ajax
13 url="http://gdata.youtube.com/feeds/api/videos/"
14 params='{"alt":"json", "q":"chrome"}'
15 handleAs="json"
16 auto
17 ></polymer-ajax>
18
19 <script>
20 var assert = chai.assert;
21 document.addEventListener('polymer-ready', function() {
22 var ajax = document.querySelector('polymer-ajax');
23 ajax.addEventListener("polymer-response", function(event) {
24 assert.isTrue(event.detail.response.feed.entry.length > 0);
25 done();
26 });
27 });
28 </script>
29 </body>
30 </html>
OLDNEW
« 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