| Index: chrome/test/data/extensions/content_script_inject/script3.js
 | 
| diff --git a/chrome/test/data/extensions/content_script_inject/script3.js b/chrome/test/data/extensions/content_script_inject/script3.js
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..9253dc9086b4e083c58d1b26539fca5382d66e1f
 | 
| --- /dev/null
 | 
| +++ b/chrome/test/data/extensions/content_script_inject/script3.js
 | 
| @@ -0,0 +1,28 @@
 | 
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
 | 
| +// Use of this source code is governed by a BSD-style license that can be
 | 
| +// found in the LICENSE file.
 | 
| +
 | 
| +var gotDOMContentLoadedEvent = false;
 | 
| +
 | 
| +// Test that at parse time, we have the document element.
 | 
| +var hasDocumentElement = (document.documentElement.tagName == "HTML");
 | 
| +
 | 
| +// TODO(aa): We would like to add more tests here that there are zero child
 | 
| +// nodes to the documentElement, but unfortunately run_at:document_start is
 | 
| +// currently buggy and doesn't guarantee that.
 | 
| +
 | 
| +window.addEventListener("DOMContentLoaded", function() {
 | 
| +  gotDOMContentLoadedEvent = true;
 | 
| +}, false);
 | 
| +
 | 
| +// Don't run tests until onload so that we can test that DOMContentLoaded and
 | 
| +// onload happen after this script runs.  
 | 
| +window.addEventListener("load", runAllTests, false);
 | 
| +
 | 
| +function testRunAtDocumentStart() {
 | 
| +  assert(hasDocumentElement);
 | 
| +}
 | 
| +
 | 
| +function testGotLoadEvents() {
 | 
| +  assert(gotDOMContentLoadedEvent);
 | 
| +}
 | 
| 
 |