From ac46df8daea09899ce30dc8fd70986e258c746bf Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 9 Feb 2018 06:46:43 -0500 Subject: Move Add-on SDK source to toolkit/jetpack --- .../addons/page-mod-debugger-pre/data/index.html | 11 -- .../addons/page-mod-debugger-pre/data/script.js | 16 --- .../test/addons/page-mod-debugger-pre/main.js | 134 --------------------- .../test/addons/page-mod-debugger-pre/package.json | 6 - 4 files changed, 167 deletions(-) delete mode 100644 addon-sdk/source/test/addons/page-mod-debugger-pre/data/index.html delete mode 100644 addon-sdk/source/test/addons/page-mod-debugger-pre/data/script.js delete mode 100644 addon-sdk/source/test/addons/page-mod-debugger-pre/main.js delete mode 100644 addon-sdk/source/test/addons/page-mod-debugger-pre/package.json (limited to 'addon-sdk/source/test/addons/page-mod-debugger-pre') diff --git a/addon-sdk/source/test/addons/page-mod-debugger-pre/data/index.html b/addon-sdk/source/test/addons/page-mod-debugger-pre/data/index.html deleted file mode 100644 index 4128d6de2..000000000 --- a/addon-sdk/source/test/addons/page-mod-debugger-pre/data/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Page Mod Debugger Test - - - diff --git a/addon-sdk/source/test/addons/page-mod-debugger-pre/data/script.js b/addon-sdk/source/test/addons/page-mod-debugger-pre/data/script.js deleted file mode 100644 index ee248d461..000000000 --- a/addon-sdk/source/test/addons/page-mod-debugger-pre/data/script.js +++ /dev/null @@ -1,16 +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'; - -function runDebuggerStatement () { - window.document.body.setAttribute('style', 'background-color: red'); - debugger; - window.document.body.setAttribute('style', 'background-color: green'); -} - -exportFunction( - runDebuggerStatement, - document.defaultView, - { defineAs: "runDebuggerStatement" } -); diff --git a/addon-sdk/source/test/addons/page-mod-debugger-pre/main.js b/addon-sdk/source/test/addons/page-mod-debugger-pre/main.js deleted file mode 100644 index 366e9e437..000000000 --- a/addon-sdk/source/test/addons/page-mod-debugger-pre/main.js +++ /dev/null @@ -1,134 +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"; - -const { Cu } = require('chrome'); -const { PageMod } = require('sdk/page-mod'); -const tabs = require('sdk/tabs'); -const { closeTab } = require('sdk/tabs/utils'); -const promise = require('sdk/core/promise') -const { getMostRecentBrowserWindow } = require('sdk/window/utils'); -const { data } = require('sdk/self'); -const { set } = require('sdk/preferences/service'); - -const { require: devtoolsRequire } = Cu.import("resource://devtools/shared/Loader.jsm", {}); -const { DebuggerServer } = devtoolsRequire("devtools/server/main"); -const { DebuggerClient } = devtoolsRequire("devtools/shared/client/main"); - -var gClient; -var ok; -var testName = 'testDebugger'; -var iframeURL = 'data:text/html;charset=utf-8,' + testName; -var TAB_URL = 'data:text/html;charset=utf-8,' + encodeURIComponent('