Commit a5c360af authored by abarth@chromium.org's avatar abarth@chromium.org

Add manifest_version 2 to yet more extension tests.

BUG=62897
TBR=aa
Review URL: http://codereview.chromium.org/8834002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113361 0039d316-1c4b-4281-b951-d872f2087c98
parent b9ea490c
<script>
chrome.tabs.create({}, function() {
throw new Error("tada");
});
chrome.tabs.create({}, function() {
chrome.test.notifyPass();
});
</script>
<!--
* Copyright (c) 2011 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.
-->
<script src="page.js"></script>
// Copyright (c) 2011 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.
chrome.tabs.create({}, function() {
throw new Error("tada");
});
chrome.tabs.create({}, function() {
chrome.test.notifyPass();
});
{
"name": "App Dot Com: The App",
"version": "0.1",
"manifest_version": 2,
"app": {
"launch": {
"container": "tab",
......
<script>
function version() {
window.domAutomationController.send("1.0");
}
</script>
<!--
* Copyright (c) 2011 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.
-->
<script src="bg.js"></script>
// Copyright (c) 2011 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.
function version() {
window.domAutomationController.send("1.0");
}
{
"name": "Extension v1",
"version": "1.0",
"manifest_version": 2,
"background_page": "bg.html"
}
{
"version": "1.0.0.0",
"manifest_version": 2,
"name": "window.open test",
"description": "An extension for an extension UITest.",
"permissions": ["tabs"]
......
<script>
function testExtensionApi() {
try {
chrome.tabs.getAllInWindow(null, function() {
window.domAutomationController.send(
!chrome.extension.lastError);
});
} catch (e) {
window.domAutomationController.send(false);
}
}
</script>
<!--
* Copyright (c) 2011 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.
-->
<script src="newtab.js"></script>
// Copyright (c) 2011 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.
function testExtensionApi() {
try {
chrome.tabs.getAllInWindow(null, function() {
window.domAutomationController.send(
!chrome.extension.lastError);
});
} catch (e) {
window.domAutomationController.send(false);
}
}
HOWDIE!!!
<script>
function testWindowOpen(url) {
window.open(url);
window.domAutomationController.send(true);
}
</script>
<script src="test.js"></script>
// Copyright (c) 2011 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.
function testWindowOpen(url) {
window.open(url);
window.domAutomationController.send(true);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment