Skip to content

Instantly share code, notes, and snippets.

@cooperq
Created December 5, 2014 20:59
Show Gist options
  • Save cooperq/0919e79734f15789094c to your computer and use it in GitHub Desktop.
Save cooperq/0919e79734f15789094c to your computer and use it in GitHub Desktop.
Failing firefox test
exports["test Policy hasWhitelistedScheme"] = function(assert) {
assert.ok(true);
};
require("sdk/test").run(exports);
@cooperq
Copy link
Author

cooperq commented Dec 5, 2014

Here is the output from the test

Running tests on Firefox 34.0/Gecko 34.0 ({ec8030f7-c20a-464f-9b0e-13a3a9e97384}) under linux/x86_64.
console.error: privacybadgerfirefox: 
  fail:
  There was an uncaught Promise rejection: JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: PendingErrors.register :: line 159
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.completePromise :: line 672
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: Handler.prototype.process :: line 868
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.walkerLoop :: line 744
native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0

1 of 2 tests passed.

The following tests failed:
  privacybadgerfirefox/tests/test-content-policy.test Policy hasWhitelistedScheme: failure

Total time: 2.065252 seconds
Program terminated unsuccessfully.`

@cooperq
Copy link
Author

cooperq commented Dec 5, 2014

Addon SDK Version is 1.17

@johnculviner
Copy link

@cooperq I'm also having this issue.. did you figure it out?

@mi-g
Copy link

mi-g commented Dec 19, 2014

same problem here. any tip ?

@VinayakAgrawal
Copy link

N still seeing this error. Any solution?
Also if I create a new directory, and use "cfx init" and then "cfx test", it gives the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment