From cd68396bd519c3e6ddb31bc097e257541d9b3035 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 15 Dec 2013 17:02:43 +0800 Subject: [PATCH] Disable use of deprecated functions in specs. --- spec/api-crash-reporter-spec.coffee | 2 ++ spec/static/index.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/spec/api-crash-reporter-spec.coffee b/spec/api-crash-reporter-spec.coffee index 0555d804..3aad0972 100644 --- a/spec/api-crash-reporter-spec.coffee +++ b/spec/api-crash-reporter-spec.coffee @@ -13,7 +13,9 @@ describe 'crash-reporter module', -> w = new BrowserWindow(show: false) server = http.createServer (req, res) -> form = new formidable.IncomingForm() + process.throwDeprecation = false form.parse req, (error, fields, files) -> + process.throwDeprecation = true assert.equal fields['prod'], 'Atom-Shell' assert.equal fields['ver'], process.versions['atom-shell'] assert.equal fields['process_type'], 'renderer' diff --git a/spec/static/index.html b/spec/static/index.html index 351af228..cb3d76c0 100644 --- a/spec/static/index.html +++ b/spec/static/index.html @@ -10,6 +10,9 @@