diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-10 02:51:36 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-10 02:51:36 -0500 |
commit | 37d5300335d81cecbecc99812747a657588c63eb (patch) | |
tree | 765efa3b6a56bb715d9813a8697473e120436278 /addon-sdk/source/test/fixtures/loader | |
parent | b2bdac20c02b12f2057b9ef70b0a946113a00e00 (diff) | |
parent | 4fb11cd5966461bccc3ed1599b808237be6b0de9 (diff) | |
download | UXP-37d5300335d81cecbecc99812747a657588c63eb.tar UXP-37d5300335d81cecbecc99812747a657588c63eb.tar.gz UXP-37d5300335d81cecbecc99812747a657588c63eb.tar.lz UXP-37d5300335d81cecbecc99812747a657588c63eb.tar.xz UXP-37d5300335d81cecbecc99812747a657588c63eb.zip |
Merge branch 'ext-work'
Diffstat (limited to 'addon-sdk/source/test/fixtures/loader')
24 files changed, 0 insertions, 215 deletions
diff --git a/addon-sdk/source/test/fixtures/loader/cycles/a.js b/addon-sdk/source/test/fixtures/loader/cycles/a.js deleted file mode 100644 index f6e13ccb7..000000000 --- a/addon-sdk/source/test/fixtures/loader/cycles/a.js +++ /dev/null @@ -1,7 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -exports.b = require('b'); diff --git a/addon-sdk/source/test/fixtures/loader/cycles/b.js b/addon-sdk/source/test/fixtures/loader/cycles/b.js deleted file mode 100644 index 69e23f11a..000000000 --- a/addon-sdk/source/test/fixtures/loader/cycles/b.js +++ /dev/null @@ -1,7 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -exports.a = require('a'); diff --git a/addon-sdk/source/test/fixtures/loader/cycles/c.js b/addon-sdk/source/test/fixtures/loader/cycles/c.js deleted file mode 100644 index ce34b3cf4..000000000 --- a/addon-sdk/source/test/fixtures/loader/cycles/c.js +++ /dev/null @@ -1,7 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -exports.main = require('main'); diff --git a/addon-sdk/source/test/fixtures/loader/cycles/main.js b/addon-sdk/source/test/fixtures/loader/cycles/main.js deleted file mode 100644 index 6d13200c8..000000000 --- a/addon-sdk/source/test/fixtures/loader/cycles/main.js +++ /dev/null @@ -1,14 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -var a = require('a'); -var b = require('b'); -var c = require('c'); - -exports.a = a; -exports.b = b; -exports.c = c; -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/errors/boomer.js b/addon-sdk/source/test/fixtures/loader/errors/boomer.js deleted file mode 100644 index c794cda33..000000000 --- a/addon-sdk/source/test/fixtures/loader/errors/boomer.js +++ /dev/null @@ -1,7 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -"use strict"; - -throw Error("opening input stream (invalid filename?)"); diff --git a/addon-sdk/source/test/fixtures/loader/errors/main.js b/addon-sdk/source/test/fixtures/loader/errors/main.js deleted file mode 100644 index 1fdb56790..000000000 --- a/addon-sdk/source/test/fixtures/loader/errors/main.js +++ /dev/null @@ -1,9 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -var error = require('./boomer'); - -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/exceptions/boomer.js b/addon-sdk/source/test/fixtures/loader/exceptions/boomer.js deleted file mode 100644 index e26817984..000000000 --- a/addon-sdk/source/test/fixtures/loader/exceptions/boomer.js +++ /dev/null @@ -1,9 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -exports.boom = function() { - throw Error("Boom!"); -}; diff --git a/addon-sdk/source/test/fixtures/loader/exceptions/main.js b/addon-sdk/source/test/fixtures/loader/exceptions/main.js deleted file mode 100644 index 4b6279d7d..000000000 --- a/addon-sdk/source/test/fixtures/loader/exceptions/main.js +++ /dev/null @@ -1,11 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -var boomer = require('./boomer'); - -boomer.boom(); - -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/globals/main.js b/addon-sdk/source/test/fixtures/loader/globals/main.js deleted file mode 100644 index 6d34ddbd3..000000000 --- a/addon-sdk/source/test/fixtures/loader/globals/main.js +++ /dev/null @@ -1,7 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; -exports.console = console; -exports.globalFoo = (typeof globalFoo !== "undefined") ? globalFoo : null; diff --git a/addon-sdk/source/test/fixtures/loader/json/invalid.json b/addon-sdk/source/test/fixtures/loader/json/invalid.json deleted file mode 100644 index 02ea4b0b4..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/invalid.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - invalidjson -} diff --git a/addon-sdk/source/test/fixtures/loader/json/manifest.json b/addon-sdk/source/test/fixtures/loader/json/manifest.json deleted file mode 100644 index 5ae25bb9d..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/manifest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "Jetpack Loader Test", - "version": "1.0.1", - "dependencies": { - "async": "*", - "underscore": "*" - }, - "contributors": [ - "ash nazg durbatulûk", - "ash nazg gimbatul", - "ash nazg thrakatulûk", - "agh burzum-ishi krimpatul" - ] -} diff --git a/addon-sdk/source/test/fixtures/loader/json/mutation.json b/addon-sdk/source/test/fixtures/loader/json/mutation.json deleted file mode 100644 index e1cbe3c15..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/mutation.json +++ /dev/null @@ -1 +0,0 @@ -{ "value": 1 } diff --git a/addon-sdk/source/test/fixtures/loader/json/nodotjson.json.js b/addon-sdk/source/test/fixtures/loader/json/nodotjson.json.js deleted file mode 100644 index af046caa6..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/nodotjson.json.js +++ /dev/null @@ -1,8 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -module.exports = { - "filename": "nodotjson.json.js", - "data": {} -}; diff --git a/addon-sdk/source/test/fixtures/loader/json/test.json b/addon-sdk/source/test/fixtures/loader/json/test.json deleted file mode 100644 index d19dc7117..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/test.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "filename": "test.json" -} diff --git a/addon-sdk/source/test/fixtures/loader/json/test.json.js b/addon-sdk/source/test/fixtures/loader/json/test.json.js deleted file mode 100644 index b14364bff..000000000 --- a/addon-sdk/source/test/fixtures/loader/json/test.json.js +++ /dev/null @@ -1,7 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -module.exports = { - "filename": "test.json.js" -}; diff --git a/addon-sdk/source/test/fixtures/loader/lazy/main.js b/addon-sdk/source/test/fixtures/loader/lazy/main.js deleted file mode 100644 index 04525f972..000000000 --- a/addon-sdk/source/test/fixtures/loader/lazy/main.js +++ /dev/null @@ -1,9 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -"use strict"; - -exports.useFoo= function () { - return require('foo'); -} diff --git a/addon-sdk/source/test/fixtures/loader/missing-twice/file.json b/addon-sdk/source/test/fixtures/loader/missing-twice/file.json deleted file mode 100644 index ebd6f791b..000000000 --- a/addon-sdk/source/test/fixtures/loader/missing-twice/file.json +++ /dev/null @@ -1 +0,0 @@ -an invalid json file diff --git a/addon-sdk/source/test/fixtures/loader/missing-twice/main.js b/addon-sdk/source/test/fixtures/loader/missing-twice/main.js deleted file mode 100644 index 20e453736..000000000 --- a/addon-sdk/source/test/fixtures/loader/missing-twice/main.js +++ /dev/null @@ -1,32 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -try { - require('./not-found'); -} -catch (e1) { - exports.firstError = e1; - // It should throw again and not be cached - try { - require('./not-found'); - } - catch (e2) { - exports.secondError = e2; - } -} - -try { - require('./file.json'); -} -catch (e) { - exports.invalidJSON1 = e; - try { - require('./file.json'); - } - catch (e) { - exports.invalidJSON2 = e; - } -} diff --git a/addon-sdk/source/test/fixtures/loader/missing/main.js b/addon-sdk/source/test/fixtures/loader/missing/main.js deleted file mode 100644 index dde9ee77c..000000000 --- a/addon-sdk/source/test/fixtures/loader/missing/main.js +++ /dev/null @@ -1,10 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -var a = require('./not-found'); - -exports.a = a; -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/self/main.js b/addon-sdk/source/test/fixtures/loader/self/main.js deleted file mode 100644 index ab2b159da..000000000 --- a/addon-sdk/source/test/fixtures/loader/self/main.js +++ /dev/null @@ -1,8 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -"use strict"; - -var self = require("sdk/self"); -exports.self = self; diff --git a/addon-sdk/source/test/fixtures/loader/syntax-error/error.js b/addon-sdk/source/test/fixtures/loader/syntax-error/error.js deleted file mode 100644 index 56c7c524f..000000000 --- a/addon-sdk/source/test/fixtures/loader/syntax-error/error.js +++ /dev/null @@ -1,11 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -module.metadata = { - "status": "experimental" -}; - -exports.b = @ require('b'); diff --git a/addon-sdk/source/test/fixtures/loader/syntax-error/main.js b/addon-sdk/source/test/fixtures/loader/syntax-error/main.js deleted file mode 100644 index 4eadef870..000000000 --- a/addon-sdk/source/test/fixtures/loader/syntax-error/main.js +++ /dev/null @@ -1,10 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -'use strict'; - -var a = require('./error'); - -exports.a = a; -exports.main = exports; diff --git a/addon-sdk/source/test/fixtures/loader/unsupported/fennec.js b/addon-sdk/source/test/fixtures/loader/unsupported/fennec.js deleted file mode 100644 index 9edc63c14..000000000 --- a/addon-sdk/source/test/fixtures/loader/unsupported/fennec.js +++ /dev/null @@ -1,10 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -module.metadata = { - "engines": { - "Fennec": "*" - } -}; -module.exports = {}; diff --git a/addon-sdk/source/test/fixtures/loader/unsupported/firefox.js b/addon-sdk/source/test/fixtures/loader/unsupported/firefox.js deleted file mode 100644 index 5a08280a4..000000000 --- a/addon-sdk/source/test/fixtures/loader/unsupported/firefox.js +++ /dev/null @@ -1,10 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -module.metadata = { - "engines": { - "Firefox": "*" - } -}; -module.exports = {}; |