OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>polymer-jsonp</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-jsonp.html"> |
| 9 </head> |
| 10 <body> |
| 11 |
| 12 <polymer-jsonp url="https://clients1.google.com/finance/info?q=GOOG&client=ig&
callback="></polymer-jsonp> |
| 13 |
| 14 <script> |
| 15 var assert = chai.assert; |
| 16 document.addEventListener('polymer-ready', function() { |
| 17 var jsonp = document.querySelector('polymer-jsonp'); |
| 18 jsonp.addEventListener("polymer-response", function(event) { |
| 19 assert.isDefined(event.detail.response[0]); |
| 20 done(); |
| 21 }); |
| 22 jsonp.go(); |
| 23 }); |
| 24 </script> |
| 25 </body> |
| 26 </html> |
OLD | NEW |