Bug 1226868: Fix test metadata to correctly check things and verify that it has done so afterwards. r=bz

This commit is contained in:
Dave Townsend 2015-11-23 10:36:40 -08:00
parent b79ff31ad1
commit 2685a5313f

View File

@ -117,6 +117,8 @@ exports['test load script with data: URL and complex char'] = function(assert) {
};
exports['test metadata'] = function(assert) {
let self = require('sdk/self');
let dbg = new Debugger();
dbg.onNewGlobalObject = function(global) {
let metadata = Cu.getSandboxMetadata(global.unsafeDereference());
@ -127,7 +129,7 @@ exports['test metadata'] = function(assert) {
}
let fixture = sandbox();
let self = require('sdk/self');
assert.equal(dbg.onNewGlobalObject, undefined, 'Should have reset the handler');
}
exports['test nuke sandbox'] = function(assert) {