| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // We're just testing that multiple scripts get added to a page in-order |
| 6 // and are run. |
| 7 chrome.test.assertEq("hi!", test); |
| 8 |
| 9 // Also test the injection point is consistent. We want to inject into body |
| 10 // because having a document.body element is convenient for some scripts. |
| 11 var scripts = document.querySelectorAll("script"); |
| 12 chrome.test.assertEq(2, scripts.length); |
| 13 for (var i = 0, script; script = scripts[i]; i++) { |
| 14 chrome.test.assertEq("BODY", script.parentElement.nodeName); |
| 15 } |
| 16 |
| 17 chrome.test.notifyPass(); |
| OLD | NEW |