From 229dbf7ea042116b909253e5d9360e73436b45c8 Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Sun, 12 Jun 2022 12:48:31 +0100 Subject: [PATCH] refactor(test): Use bootstrap.js in multi_playground.html This removes the last use of load_all.js, so remove it. --- tests/multi_playground.html | 21 ++++++++------ tests/playgrounds/load_all.js | 53 ----------------------------------- 2 files changed, 13 insertions(+), 61 deletions(-) delete mode 100644 tests/playgrounds/load_all.js diff --git a/tests/multi_playground.html b/tests/multi_playground.html index da48e2c85..3a2720818 100644 --- a/tests/multi_playground.html +++ b/tests/multi_playground.html @@ -4,14 +4,13 @@ Multi-toolbox Playground - - + + + - +

Blockly Multi Playground

diff --git a/tests/playgrounds/load_all.js b/tests/playgrounds/load_all.js deleted file mode 100644 index 5eaa65e03..000000000 --- a/tests/playgrounds/load_all.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */ - -/** - * @fileoverview Loads uncompressed Blockly when running locally. Loads - * compressed otherwise. - */ -'use strict'; - - -/** - * Loads all the compressed or uncompressed dependencies necessary to run the - * playground. This is necessary since the goog.module conversion. Please see - * issue #5557 for more information. - */ -(function() { -const isIe = navigator.userAgent.indexOf('MSIE') !== -1 || - navigator.appVersion.indexOf('Trident/') > -1; - -if ((location.hostname === 'localhost' || location.hostname === '127.0.0.1' || - location.hostname === '[::1]') && - !isIe) { - document.write( - ``); - document.write(``); - document.write(``); - document.write( - ``); - document.write(``); -} else { - document.write( - ``); - document.write(``); - document.write(``); - document.write(``); - document.write(``); - document.write(``); - document.write(``); - document.write(``); -} -})();