forked from mirrors/gecko-dev
Bug 1226398 - Part 2: Check dom/indexedDB/ in eslint. r=jaws
This commit is contained in:
parent
5bc59c92e3
commit
746c9596d6
2 changed files with 77 additions and 3 deletions
|
|
@ -14,7 +14,6 @@ chrome/**
|
|||
config/**
|
||||
db/**
|
||||
docshell/**
|
||||
dom/**
|
||||
editor/**
|
||||
embedding/**
|
||||
extensions/**
|
||||
|
|
@ -153,6 +152,77 @@ devtools/client/framework/test/code_ugly*
|
|||
devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
|
||||
devtools/server/tests/unit/setBreakpoint*
|
||||
|
||||
# dom/ exclusions
|
||||
dom/animation/**
|
||||
dom/archivereader/**
|
||||
dom/asmjscache/**
|
||||
dom/audiochannel/**
|
||||
dom/base/**
|
||||
dom/battery/**
|
||||
dom/bindings/**
|
||||
dom/broadcastchannel/**
|
||||
dom/browser-element/**
|
||||
dom/cache/**
|
||||
dom/canvas/**
|
||||
dom/commandhandler/**
|
||||
dom/console/**
|
||||
dom/crypto/**
|
||||
dom/devicestorage/**
|
||||
dom/encoding/**
|
||||
dom/events/**
|
||||
dom/fetch/**
|
||||
dom/file/**
|
||||
dom/filehandle/**
|
||||
dom/filesystem/**
|
||||
dom/flyweb/**
|
||||
dom/gamepad/**
|
||||
dom/geolocation/**
|
||||
dom/grid/**
|
||||
dom/html/**
|
||||
dom/imptests/**
|
||||
dom/interfaces/**
|
||||
dom/ipc/**
|
||||
dom/json/**
|
||||
dom/jsurl/**
|
||||
dom/locales/**
|
||||
dom/manifest/**
|
||||
dom/mathml/**
|
||||
dom/media/**
|
||||
dom/messagechannel/**
|
||||
dom/network/**
|
||||
dom/notification/**
|
||||
dom/offline/**
|
||||
dom/performance/**
|
||||
dom/permission/**
|
||||
dom/plugins/**
|
||||
dom/power/**
|
||||
dom/presentation/**
|
||||
dom/promise/**
|
||||
dom/push/**
|
||||
dom/quota/**
|
||||
dom/res/**
|
||||
dom/secureelement/**
|
||||
dom/security/**
|
||||
dom/smil/**
|
||||
dom/storage/**
|
||||
dom/svg/**
|
||||
dom/system/**
|
||||
dom/tests/**
|
||||
dom/time/**
|
||||
dom/u2f/**
|
||||
dom/url/**
|
||||
dom/vr/**
|
||||
dom/webauthn/**
|
||||
dom/webbrowserpersist/**
|
||||
dom/webidl/**
|
||||
dom/workers/**
|
||||
dom/worklet/**
|
||||
dom/xbl/**
|
||||
dom/xhr/**
|
||||
dom/xml/**
|
||||
dom/xslt/**
|
||||
dom/xul/**
|
||||
|
||||
# Exclude everything but self-hosted JS
|
||||
js/ductwork/**
|
||||
js/examples/**
|
||||
|
|
|
|||
|
|
@ -20,8 +20,12 @@ function* testSteps()
|
|||
try {
|
||||
request.result;
|
||||
ok(false, "Getter should have thrown!");
|
||||
} catch (e if e.result == 0x8053000b /* NS_ERROR_DOM_INVALID_STATE_ERR */) {
|
||||
ok(true, "Getter threw the right exception");
|
||||
} catch (e) {
|
||||
if (e.result == 0x8053000b /* NS_ERROR_DOM_INVALID_STATE_ERR */) {
|
||||
ok(true, "Getter threw the right exception");
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
request.onerror = errorHandler;
|
||||
|
|
|
|||
Loading…
Reference in a new issue