mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1226868: Fix test metadata to correctly check things and verify that it has done so afterwards. r=bz
This commit is contained in:
parent
b79ff31ad1
commit
2685a5313f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user