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
{ {
"name": "bug106201", "name": "bug106201",
"manifest_version": 2,
"version": "1" "version": "1"
} }
<script> <!--
chrome.tabs.create({}, function() { * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
throw new Error("tada"); * source code is governed by a BSD-style license that can be found in the
}); * LICENSE file.
chrome.tabs.create({}, function() { -->
chrome.test.notifyPass(); <script src="page.js"></script>
});
</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", "name": "App Dot Com: The App",
"version": "0.1", "version": "0.1",
"manifest_version": 2,
"app": { "app": {
"launch": { "launch": {
"container": "tab", "container": "tab",
......
<script> <!--
function version() { * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
window.domAutomationController.send("1.0"); * source code is governed by a BSD-style license that can be found in the
} * LICENSE file.
</script> -->
<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", "name": "Extension v1",
"version": "1.0", "version": "1.0",
"manifest_version": 2,
"background_page": "bg.html" "background_page": "bg.html"
} }
{ {
"version": "1.0.0.0", "version": "1.0.0.0",
"manifest_version": 2,
"name": "window.open test", "name": "window.open test",
"description": "An extension for an extension UITest.", "description": "An extension for an extension UITest.",
"permissions": ["tabs"] "permissions": ["tabs"]
......
<script> <!--
function testExtensionApi() { * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
try { * source code is governed by a BSD-style license that can be found in the
chrome.tabs.getAllInWindow(null, function() { * LICENSE file.
window.domAutomationController.send( -->
!chrome.extension.lastError); <script src="newtab.js"></script>
});
} 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.
function testExtensionApi() {
try {
chrome.tabs.getAllInWindow(null, function() {
window.domAutomationController.send(
!chrome.extension.lastError);
});
} catch (e) {
window.domAutomationController.send(false);
}
}
HOWDIE!!! HOWDIE!!!
<script> <script src="test.js"></script>
function testWindowOpen(url) {
window.open(url);
window.domAutomationController.send(true);
}
</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