| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var tests = [ | 5 var tests = [ |
| 6 /** | 6 /** |
| 7 * Test that some key elements exist and that they have the appropriate | 7 * Test that some key elements exist and that they have the appropriate |
| 8 * constructor name. This verifies that polymer is working correctly. | 8 * constructor name. This verifies that polymer is working correctly. |
| 9 */ | 9 */ |
| 10 function testHasElements() { | 10 function testHasElements() { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 String(element.constructor).indexOf(elementNames[i]) != -1); | 23 String(element.constructor).indexOf(elementNames[i]) != -1); |
| 24 } | 24 } |
| 25 chrome.test.succeed(); | 25 chrome.test.succeed(); |
| 26 }, | 26 }, |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * Test that the plugin element exists and is navigated to the correct URL. | 29 * Test that the plugin element exists and is navigated to the correct URL. |
| 30 */ | 30 */ |
| 31 function testPluginElement() { | 31 function testPluginElement() { |
| 32 var plugin = document.getElementById('plugin'); | 32 var plugin = document.getElementById('plugin'); |
| 33 chrome.test.assertEq('object', plugin.localName); | 33 chrome.test.assertEq('embed', plugin.localName); |
| 34 | 34 |
| 35 chrome.test.assertTrue( | 35 chrome.test.assertTrue( |
| 36 plugin.getAttribute('src').indexOf('/pdf/test.pdf') != -1); | 36 plugin.getAttribute('src').indexOf('/pdf/test.pdf') != -1); |
| 37 chrome.test.succeed(); | 37 chrome.test.succeed(); |
| 38 }, | 38 }, |
| 39 ]; | 39 ]; |
| 40 | 40 |
| 41 chrome.test.runTests(tests); | 41 chrome.test.runTests(tests); |
| OLD | NEW |