Bug 783173 - Fix test_ipc implementations to handle mandatory __exposedProps__. r=khuey

This commit is contained in:
Bobby Holley 2012-08-17 09:21:17 -07:00
parent 1cd719aa66
commit ae072f5464
2 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,8 @@
function iframeScriptFirst() {
content.wrappedJSObject.RunSet.reloadAndRunAll({
preventDefault: function() { }
preventDefault: function() { },
__exposedProps__: { preventDefault: 'r' }
});
}
@ -44,7 +45,7 @@
let regex = /^(TEST-PASS|TEST-UNEXPECTED-PASS|TEST-KNOWN-FAIL|TEST-UNEXPECTED-FAIL|TEST-DEBUG-INFO) \| ([^\|]+) \|(.*)/;
function onTestMessage(data) {
let message = data.json.msg;
let message = SpecialPowers.wrap(data).json.msg;
let match = regex.exec(message);
if (match) {
let state = match[1];

View File

@ -24,7 +24,8 @@
SpecialPowers.prototype.unregisterProcessCrashObservers = function() { };
content.wrappedJSObject.RunSet.reloadAndRunAll({
preventDefault: function() { }
preventDefault: function() { },
__exposedProps__: { preventDefault: 'r' }
});
}
@ -58,7 +59,7 @@
let regex = new RegExp(regexString);
function onTestMessage(data) {
let message = data.json.msg;
let message = SpecialPowers.wrap(data).json.msg;
let match = regex.exec(message);
if (match) {
let state = match[1];