1 // Copyright (c) 2011 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.
5 window
.externalCanary
= "Alive";
7 chrome
.test
.getConfig(function(config
) {
9 function inlineScriptDoesNotRun() {
10 chrome
.test
.assertEq(window
.inlineCanary
, undefined);
11 chrome
.test
.succeed();
14 function externalScriptDoesRun() {
15 // This test is somewhat zen in the sense that if external scripts are
16 // blocked, we don't be able to even execute the test harness...
17 chrome
.test
.assertEq(window
.externalCanary
, "Alive");
18 chrome
.test
.succeed();
21 chrome
.test
.runTests([
22 inlineScriptDoesNotRun
,