webextension-polyfill/test
Luca Greco 6cca044a5c test: add more test cases to reach a full code coverage.
- if the a browser global already exists, it should not be overridden
- use Object.defineProperty on the wrapped browser global
  (and test "has" for cached properties)
- delete a property defined with Object.defineProperty
- methods that are not wrapped are proxied correctly
- the special onMessage wrapper should not wrap a listener that is not
  a function
- test that a returned rejected Promise on the onMessage listener
  is turned in the parameter of the sendResponse callback
2016-11-07 16:34:34 +01:00
..
.eslintrc fix: relax max-nested-callback eslint rules for tests. 2016-11-07 16:34:34 +01:00
setup.js test: tweaks on test helpers (support for 'existent browser global' test). 2016-11-07 16:34:34 +01:00
test-async-functions.js test: added test case for async function rejection, and arguments length validation. 2016-11-07 16:34:34 +01:00
test-browser-global.js test: add more test cases to reach a full code coverage. 2016-11-07 16:34:34 +01:00
test-proxied-properties.js test: add more test cases to reach a full code coverage. 2016-11-07 16:34:34 +01:00
test-runtime-onMessage.js test: add more test cases to reach a full code coverage. 2016-11-07 16:34:34 +01:00