Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8691)

Unified Diff: chrome/test/data/extensions/api_test/input/test.js

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/input/test.js
diff --git a/chrome/test/data/extensions/api_test/input/test.js b/chrome/test/data/extensions/api_test/input/test.js
index a087149820890c4c35992a90b4262bfa9e7de73a..31611cd5433dc3d4dafc2c7f58375b9755fcda16 100644
--- a/chrome/test/data/extensions/api_test/input/test.js
+++ b/chrome/test/data/extensions/api_test/input/test.js
@@ -9,7 +9,7 @@ chrome.test.runTests([
function sendKeyboardEvent() {
var e = { 'type': 'keydown', 'keyIdentifier': 'A' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (chrome.extension.lastError) {
+ if (chrome.runtime.lastError) {
// this is expected for now: no one is handling keys yet
// chrome.test.fail();
}
@@ -22,7 +22,7 @@ chrome.test.runTests([
function badKeyIdentifier() {
var e = { 'type': 'keydown', 'keyIdentifier': 'BogusId' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (!chrome.extension.lastError) {
+ if (!chrome.runtime.lastError) {
chrome.test.fail();
}
chrome.test.succeed();
@@ -32,7 +32,7 @@ chrome.test.runTests([
function badEventType() {
var e = { 'type': 'BAD', 'keyIdentifier': 'A' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (!chrome.extension.lastError) {
+ if (!chrome.runtime.lastError) {
chrome.test.fail();
}
chrome.test.succeed();
@@ -42,7 +42,7 @@ chrome.test.runTests([
function unmappedKeyIdentifier() {
var e = { 'type': 'keydown', 'keyIdentifier': 'Again' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (!chrome.extension.lastError) {
+ if (!chrome.runtime.lastError) {
chrome.test.fail();
}
chrome.test.succeed();
@@ -53,7 +53,7 @@ chrome.test.runTests([
// U+00E1: LATIN SMALL LATTER A WITH ACUTE.
var e = { 'type': 'keydown', 'keyIdentifier': 'U+00E1' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (chrome.extension.lastError) {
+ if (chrome.runtime.lastError) {
// this is expected for now. See sendKeyboardEvent().
// chrome.test.fail();
}
@@ -66,7 +66,7 @@ chrome.test.runTests([
var e = { 'type': 'keydown',
'keyIdentifier': 'U+043a' }; // lower case is also ok.
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (chrome.extension.lastError) {
+ if (chrome.runtime.lastError) {
// this is expected for now. See sendKeyboardEvent().
// chrome.test.fail();
}
@@ -77,7 +77,7 @@ chrome.test.runTests([
function sendKeyboardEventBadUnicode1() {
var e = { 'type': 'keydown', 'keyIdentifier': 'U+' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (!chrome.extension.lastError) {
+ if (!chrome.runtime.lastError) {
chrome.test.fail();
}
chrome.test.succeed();
@@ -87,7 +87,7 @@ chrome.test.runTests([
function sendKeyboardEventBadUnicode2() {
var e = { 'type': 'keydown', 'keyIdentifier': 'U+1' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (!chrome.extension.lastError) {
+ if (!chrome.runtime.lastError) {
chrome.test.fail();
}
chrome.test.succeed();
@@ -97,7 +97,7 @@ chrome.test.runTests([
function sendKeyboardEventBadUnicode3() {
var e = { 'type': 'keydown', 'keyIdentifier': 'U+111g' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (!chrome.extension.lastError) {
+ if (!chrome.runtime.lastError) {
chrome.test.fail();
}
chrome.test.succeed();
@@ -107,7 +107,7 @@ chrome.test.runTests([
function sendKeyboardEventBadUnicode4() {
var e = { 'type': 'keydown', 'keyIdentifier': 'U+11111' };
chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(e, function() {
- if (!chrome.extension.lastError) {
+ if (!chrome.runtime.lastError) {
chrome.test.fail();
}
chrome.test.succeed();

Powered by Google App Engine
This is Rietveld 408576698