From 746c9596d643f60d85b956114c068281719099b4 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Sat, 11 Feb 2017 11:47:57 +0900 Subject: [PATCH] Bug 1226398 - Part 2: Check dom/indexedDB/ in eslint. r=jaws --- .eslintignore | 72 ++++++++++++++++++- .../test/unit/test_setVersion_events.js | 8 ++- 2 files changed, 77 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index 3435bcf63f71..3749ff069309 100644 --- a/.eslintignore +++ b/.eslintignore @@ -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/** diff --git a/dom/indexedDB/test/unit/test_setVersion_events.js b/dom/indexedDB/test/unit/test_setVersion_events.js index 18e3f003c241..f22a0e0bb779 100644 --- a/dom/indexedDB/test/unit/test_setVersion_events.js +++ b/dom/indexedDB/test/unit/test_setVersion_events.js @@ -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;