From 51c187b2b573007d62bd235edffc73c74f75b217 Mon Sep 17 00:00:00 2001 From: ashraf Date: Mon, 3 Mar 2025 00:52:30 +0200 Subject: [PATCH] Add license headers to test files --- js/__tests__/SaveInterface.test.js | 19 +++++++++++++++++++ js/__tests__/abc.test.js | 19 +++++++++++++++++++ js/__tests__/artwork.test.js | 19 +++++++++++++++++++ js/__tests__/background.test.js | 19 +++++++++++++++++++ js/__tests__/base64Utils.test.js | 19 +++++++++++++++++++ js/__tests__/basicblocks.test.js | 19 +++++++++++++++++++ js/__tests__/blockfactory.test.js | 19 +++++++++++++++++++ js/__tests__/boundary.test.js | 19 +++++++++++++++++++ js/__tests__/languagebox.test.js | 19 +++++++++++++++++++ js/__tests__/macros.test.js | 19 +++++++++++++++++++ js/__tests__/midi.test.js | 19 +++++++++++++++++++ js/__tests__/mxml.test.js | 19 +++++++++++++++++++ js/__tests__/notation.test.js | 19 +++++++++++++++++++ js/__tests__/palette.test.js | 19 +++++++++++++++++++ js/__tests__/pastebox.test.js | 19 +++++++++++++++++++ js/__tests__/planetInterface.test.js | 19 +++++++++++++++++++ js/__tests__/protoblocks.test.js | 19 +++++++++++++++++++ js/__tests__/rubrics.test.js | 19 +++++++++++++++++++ js/__tests__/themebox.test.js | 19 +++++++++++++++++++ js/__tests__/trash.test.js | 19 +++++++++++++++++++ js/__tests__/turtle-painter.test.js | 19 +++++++++++++++++++ js/__tests__/turtle-singer.test.js | 19 +++++++++++++++++++ js/__tests__/turtledefs.test.js | 19 +++++++++++++++++++ js/__tests__/turtles.test.js | 19 +++++++++++++++++++ js/blocks/__tests__/DictBlocks.test.js | 18 ++++++++++++++++++ .../API/__tests__/DictBlocksAPI.test.js | 19 +++++++++++++++++++ .../API/__tests__/DrumBlocksAPI.test.js | 18 ++++++++++++++++++ .../API/__tests__/GraphicsBlocksAPI.test.js | 19 +++++++++++++++++++ .../API/__tests__/IntervalsBlocksAPI.test.js | 19 +++++++++++++++++++ .../API/__tests__/MeterBlocksAPI.test.js | 18 ++++++++++++++++++ .../API/__tests__/OrnamentBlocksAPI.test.js | 19 +++++++++++++++++++ .../API/__tests__/PenBlocksAPI.test.js | 19 +++++++++++++++++++ .../API/__tests__/PitchBlocksAPI.test.js | 19 +++++++++++++++++++ .../API/__tests__/RhythmBlocksAPI.test.js | 19 +++++++++++++++++++ .../API/__tests__/ToneBlocksAPI.test.js | 19 +++++++++++++++++++ .../API/__tests__/VolumeBlocksAPI.test.js | 19 +++++++++++++++++++ js/js-export/__tests__/ASTutils.test.js | 19 +++++++++++++++++++ js/js-export/__tests__/constraints.test.js | 19 +++++++++++++++++++ js/js-export/__tests__/export.test.js | 19 +++++++++++++++++++ js/js-export/__tests__/generate.test.js | 19 +++++++++++++++++++ js/js-export/__tests__/interface.test.js | 19 +++++++++++++++++++ .../__tests__/DictActions.test.js | 19 +++++++++++++++++++ .../__tests__/DrumActions.test.js | 19 +++++++++++++++++++ .../__tests__/MeterActions.test.js | 19 +++++++++++++++++++ .../__tests__/OrnamentActions.test.js | 19 +++++++++++++++++++ .../__tests__/PitchActions.test.js | 19 +++++++++++++++++++ .../__tests__/ToneActions.test.js | 19 +++++++++++++++++++ .../__tests__/VolumeActions.test.js | 19 +++++++++++++++++++ js/utils/__tests__/mathutils.test.js | 19 +++++++++++++++++++ js/utils/__tests__/munsell.test.js | 19 +++++++++++++++++++ js/utils/__tests__/musicutils.test.js | 19 +++++++++++++++++++ js/utils/__tests__/platformstyle.test.js | 19 +++++++++++++++++++ js/utils/__tests__/synthutils.test.js | 19 +++++++++++++++++++ js/utils/__tests__/utils.test.js | 19 +++++++++++++++++++ .../test/functional/datastoreSpec.js | 19 +++++++++++++++++++ .../test/functional/toolkitContractSpec.js | 19 +++++++++++++++++++ lib/sugar-web/test/graphics/iconSpec.js | 19 +++++++++++++++++++ .../test/graphics/menupaletteSpec.js | 19 +++++++++++++++++++ lib/sugar-web/test/graphics/paletteSpec.js | 19 +++++++++++++++++++ .../test/graphics/radiobuttonsgroupSpec.js | 19 +++++++++++++++++++ lib/sugar-web/test/unit/busSpec.js | 19 +++++++++++++++++++ lib/sugar-web/test/unit/datastoreSpec.js | 19 +++++++++++++++++++ lib/sugar-web/test/unit/dictstoreSpec.js | 19 +++++++++++++++++++ lib/sugar-web/test/unit/envSpec.js | 19 +++++++++++++++++++ 64 files changed, 1213 insertions(+) diff --git a/js/__tests__/SaveInterface.test.js b/js/__tests__/SaveInterface.test.js index f2d931b603..355001f45a 100644 --- a/js/__tests__/SaveInterface.test.js +++ b/js/__tests__/SaveInterface.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Diwangshu Kakoty + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + global.Midi = jest.fn().mockImplementation(() => ({ header: { ticksPerBeat: 480 }, addTrack: jest.fn(() => ({ diff --git a/js/__tests__/abc.test.js b/js/__tests__/abc.test.js index 97eedcf3f9..b019602138 100644 --- a/js/__tests__/abc.test.js +++ b/js/__tests__/abc.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Diwangshu Kakoty + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + // Mock global constants global.NOTATIONNOTE = 0; global.NOTATIONDURATION = 1; diff --git a/js/__tests__/artwork.test.js b/js/__tests__/artwork.test.js index a1a4b34d45..10c202d697 100644 --- a/js/__tests__/artwork.test.js +++ b/js/__tests__/artwork.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + global._THIS_IS_TURTLE_BLOCKS_ = true; const { showMaterialHighlight, hideButtonHighlight, hidePaletteNameDisplay, COLLAPSEBUTTONXOFF, STANDARDBLOCKHEIGHT, FILLCOLORS, TURTLESVG } = require('../artwork'); diff --git a/js/__tests__/background.test.js b/js/__tests__/background.test.js index ca82525dde..05b9a69d76 100644 --- a/js/__tests__/background.test.js +++ b/js/__tests__/background.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + describe("Browser Action Behavior", () => { let mockBrowser; let mockChrome; diff --git a/js/__tests__/base64Utils.test.js b/js/__tests__/base64Utils.test.js index cdd88feca1..2eff465a3b 100644 --- a/js/__tests__/base64Utils.test.js +++ b/js/__tests__/base64Utils.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const base64Utils = require('../base64Utils'); global.TextEncoder = require('util').TextEncoder; global.TextDecoder = require('util').TextDecoder; diff --git a/js/__tests__/basicblocks.test.js b/js/__tests__/basicblocks.test.js index fe42c1b02c..ccc8a868d1 100644 --- a/js/__tests__/basicblocks.test.js +++ b/js/__tests__/basicblocks.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { initBasicProtoBlocks, BACKWARDCOMPATIBILIYDICT } = require('../basicblocks'); const mockActivity = { diff --git a/js/__tests__/blockfactory.test.js b/js/__tests__/blockfactory.test.js index 701a0502a0..d2bc8330ad 100644 --- a/js/__tests__/blockfactory.test.js +++ b/js/__tests__/blockfactory.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { SVG } = require('../blockfactory'); const { platformColor } = require('../utils/platformstyle'); global.platformColor = platformColor; diff --git a/js/__tests__/boundary.test.js b/js/__tests__/boundary.test.js index fbf5128c1f..61a90a0502 100644 --- a/js/__tests__/boundary.test.js +++ b/js/__tests__/boundary.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + global.base64Encode = jest.fn((str) => str); global.createjs = { Container: jest.fn(() => ({ diff --git a/js/__tests__/languagebox.test.js b/js/__tests__/languagebox.test.js index dee6aebcd7..b54e4b0bcc 100644 --- a/js/__tests__/languagebox.test.js +++ b/js/__tests__/languagebox.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const LanguageBox = require("../languagebox"); const mockActivity = { diff --git a/js/__tests__/macros.test.js b/js/__tests__/macros.test.js index ffa35ab28c..29616ff0a4 100644 --- a/js/__tests__/macros.test.js +++ b/js/__tests__/macros.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const blockIsMacro = require("../macros"); const getMacroExpansion = require("../macros"); global._ = jest.fn((str) => str); diff --git a/js/__tests__/midi.test.js b/js/__tests__/midi.test.js index 39d56982d6..939dc5519a 100644 --- a/js/__tests__/midi.test.js +++ b/js/__tests__/midi.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Diwangshu Kakoty + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { getClosestStandardNoteValue, transcribeMidi } = require('../midi'); const mockMidi = { diff --git a/js/__tests__/mxml.test.js b/js/__tests__/mxml.test.js index 523d27e71a..475a580abd 100644 --- a/js/__tests__/mxml.test.js +++ b/js/__tests__/mxml.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const saveMxmlOutput = require("../mxml"); describe("saveMxmlOutput", () => { diff --git a/js/__tests__/notation.test.js b/js/__tests__/notation.test.js index 4f5beac967..619b2c769d 100644 --- a/js/__tests__/notation.test.js +++ b/js/__tests__/notation.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const Notation = require('../notation'); const { durationToNoteValue, convertFactor } = require('../utils/musicutils'); global.convertFactor = convertFactor; diff --git a/js/__tests__/palette.test.js b/js/__tests__/palette.test.js index 208e844caa..f2a719d695 100644 --- a/js/__tests__/palette.test.js +++ b/js/__tests__/palette.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { Palettes, initPalettes } = require('../palette'); global.LEADING = 10; diff --git a/js/__tests__/pastebox.test.js b/js/__tests__/pastebox.test.js index dd269a284b..3b7ea6b38d 100644 --- a/js/__tests__/pastebox.test.js +++ b/js/__tests__/pastebox.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const PasteBox = require("../pastebox"); const mockActivity = { diff --git a/js/__tests__/planetInterface.test.js b/js/__tests__/planetInterface.test.js index ad7f75442f..bf4d895b4e 100644 --- a/js/__tests__/planetInterface.test.js +++ b/js/__tests__/planetInterface.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const PlanetInterface = require('../planetInterface'); global.platformColor = { header: '#8bc34a' diff --git a/js/__tests__/protoblocks.test.js b/js/__tests__/protoblocks.test.js index 685d6e1403..c94817e079 100644 --- a/js/__tests__/protoblocks.test.js +++ b/js/__tests__/protoblocks.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const ProtoBlock = require("../protoblocks"); global.createjs = { Container: jest.fn(() => ({ diff --git a/js/__tests__/rubrics.test.js b/js/__tests__/rubrics.test.js index 01fb2c2943..e73eb1c0a7 100644 --- a/js/__tests__/rubrics.test.js +++ b/js/__tests__/rubrics.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + global._ = (str) => str; const { TACAT, diff --git a/js/__tests__/themebox.test.js b/js/__tests__/themebox.test.js index 320bfcca65..2bedcc8322 100644 --- a/js/__tests__/themebox.test.js +++ b/js/__tests__/themebox.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + global._ = jest.fn((str) => str); const ThemeBox = require("../themebox"); diff --git a/js/__tests__/trash.test.js b/js/__tests__/trash.test.js index 4d6147cf7d..6b8e62c4d3 100644 --- a/js/__tests__/trash.test.js +++ b/js/__tests__/trash.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const Trashcan = require("../trash"); // Adjust the path as needed // Mock dependencies diff --git a/js/__tests__/turtle-painter.test.js b/js/__tests__/turtle-painter.test.js index 13df6de3c0..66bbdb8afb 100644 --- a/js/__tests__/turtle-painter.test.js +++ b/js/__tests__/turtle-painter.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const Painter = require("../turtle-painter"); global.WRAP = true; const mockTurtle = { diff --git a/js/__tests__/turtle-singer.test.js b/js/__tests__/turtle-singer.test.js index d2e2d3c7b5..b227c389b9 100644 --- a/js/__tests__/turtle-singer.test.js +++ b/js/__tests__/turtle-singer.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + global.DEFAULTVOLUME = 100; global.TARGETBPM = 120; global.TONEBPM = 60; diff --git a/js/__tests__/turtledefs.test.js b/js/__tests__/turtledefs.test.js index ad7b416c94..fb5b435756 100644 --- a/js/__tests__/turtledefs.test.js +++ b/js/__tests__/turtledefs.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + global._ = jest.fn((str) => str); global._THIS_IS_TURTLE_BLOCKS_ = true; const { diff --git a/js/__tests__/turtles.test.js b/js/__tests__/turtles.test.js index 597c8c3690..e9d268ec20 100644 --- a/js/__tests__/turtles.test.js +++ b/js/__tests__/turtles.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const Turtles = require('../turtles'); global.createjs = { diff --git a/js/blocks/__tests__/DictBlocks.test.js b/js/blocks/__tests__/DictBlocks.test.js index 95737b5f76..2b860849d7 100644 --- a/js/blocks/__tests__/DictBlocks.test.js +++ b/js/blocks/__tests__/DictBlocks.test.js @@ -1,3 +1,21 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { setupDictBlocks } = require('../DictBlocks'); global._ = jest.fn((str) => str); diff --git a/js/js-export/API/__tests__/DictBlocksAPI.test.js b/js/js-export/API/__tests__/DictBlocksAPI.test.js index 3daf3aee62..d1c03f4340 100644 --- a/js/js-export/API/__tests__/DictBlocksAPI.test.js +++ b/js/js-export/API/__tests__/DictBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/DrumBlocksAPI.test.js b/js/js-export/API/__tests__/DrumBlocksAPI.test.js index a51b2b03a8..c4330cfe80 100644 --- a/js/js-export/API/__tests__/DrumBlocksAPI.test.js +++ b/js/js-export/API/__tests__/DrumBlocksAPI.test.js @@ -1,3 +1,21 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Nikhil + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/GraphicsBlocksAPI.test.js b/js/js-export/API/__tests__/GraphicsBlocksAPI.test.js index af16340b04..37a2abe30c 100644 --- a/js/js-export/API/__tests__/GraphicsBlocksAPI.test.js +++ b/js/js-export/API/__tests__/GraphicsBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/IntervalsBlocksAPI.test.js b/js/js-export/API/__tests__/IntervalsBlocksAPI.test.js index deafc1c899..df81a3c417 100644 --- a/js/js-export/API/__tests__/IntervalsBlocksAPI.test.js +++ b/js/js-export/API/__tests__/IntervalsBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/MeterBlocksAPI.test.js b/js/js-export/API/__tests__/MeterBlocksAPI.test.js index fa309abc77..112c68a612 100644 --- a/js/js-export/API/__tests__/MeterBlocksAPI.test.js +++ b/js/js-export/API/__tests__/MeterBlocksAPI.test.js @@ -1,3 +1,21 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ const JSInterface = { validateArgs: jest.fn(), diff --git a/js/js-export/API/__tests__/OrnamentBlocksAPI.test.js b/js/js-export/API/__tests__/OrnamentBlocksAPI.test.js index d2034f9d09..be5f5823e1 100644 --- a/js/js-export/API/__tests__/OrnamentBlocksAPI.test.js +++ b/js/js-export/API/__tests__/OrnamentBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/PenBlocksAPI.test.js b/js/js-export/API/__tests__/PenBlocksAPI.test.js index 9fca7a9f21..5abb9f0611 100644 --- a/js/js-export/API/__tests__/PenBlocksAPI.test.js +++ b/js/js-export/API/__tests__/PenBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/PitchBlocksAPI.test.js b/js/js-export/API/__tests__/PitchBlocksAPI.test.js index 89d413ca12..5f1608476f 100644 --- a/js/js-export/API/__tests__/PitchBlocksAPI.test.js +++ b/js/js-export/API/__tests__/PitchBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/RhythmBlocksAPI.test.js b/js/js-export/API/__tests__/RhythmBlocksAPI.test.js index b8eda1f374..202f98f412 100644 --- a/js/js-export/API/__tests__/RhythmBlocksAPI.test.js +++ b/js/js-export/API/__tests__/RhythmBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Nikhil + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/ToneBlocksAPI.test.js b/js/js-export/API/__tests__/ToneBlocksAPI.test.js index ca6564aca4..52bbd31682 100644 --- a/js/js-export/API/__tests__/ToneBlocksAPI.test.js +++ b/js/js-export/API/__tests__/ToneBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/API/__tests__/VolumeBlocksAPI.test.js b/js/js-export/API/__tests__/VolumeBlocksAPI.test.js index 4045c0370b..41a22cee28 100644 --- a/js/js-export/API/__tests__/VolumeBlocksAPI.test.js +++ b/js/js-export/API/__tests__/VolumeBlocksAPI.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = { validateArgs: jest.fn(), }; diff --git a/js/js-export/__tests__/ASTutils.test.js b/js/js-export/__tests__/ASTutils.test.js index 564e3ff21a..64817e68b7 100644 --- a/js/js-export/__tests__/ASTutils.test.js +++ b/js/js-export/__tests__/ASTutils.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const ASTUtils = require('../ASTutils'); global.last = jest.fn((array) => array[array.length - 1]); diff --git a/js/js-export/__tests__/constraints.test.js b/js/js-export/__tests__/constraints.test.js index 6c23238d73..3202922a13 100644 --- a/js/js-export/__tests__/constraints.test.js +++ b/js/js-export/__tests__/constraints.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + global.JSInterface = { _methodArgConstraints: {} }; require("../constraints.js"); diff --git a/js/js-export/__tests__/export.test.js b/js/js-export/__tests__/export.test.js index c97c4a67d8..87aaa2bdfa 100644 --- a/js/js-export/__tests__/export.test.js +++ b/js/js-export/__tests__/export.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { Mouse, MusicBlocks } = require('../export.js'); global.importMembers = jest.fn(); global.JSInterface = { diff --git a/js/js-export/__tests__/generate.test.js b/js/js-export/__tests__/generate.test.js index 60b5d01af2..bebd2f021e 100644 --- a/js/js-export/__tests__/generate.test.js +++ b/js/js-export/__tests__/generate.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Om Santosh Suneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { JSGenerate } = require('../generate'); global.last = jest.fn((array) => array[array.length - 1]); const globalActivity = { diff --git a/js/js-export/__tests__/interface.test.js b/js/js-export/__tests__/interface.test.js index 6f39eb26e3..c9dbfc9d13 100644 --- a/js/js-export/__tests__/interface.test.js +++ b/js/js-export/__tests__/interface.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const JSInterface = require('../interface'); JSInterface._methodArgConstraints = {}; diff --git a/js/turtleactions/__tests__/DictActions.test.js b/js/turtleactions/__tests__/DictActions.test.js index 1f02417989..282bbed59b 100644 --- a/js/turtleactions/__tests__/DictActions.test.js +++ b/js/turtleactions/__tests__/DictActions.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const setupDictActions = require('../DictActions'); describe('setupDictActions', () => { let activity; diff --git a/js/turtleactions/__tests__/DrumActions.test.js b/js/turtleactions/__tests__/DrumActions.test.js index da1ad1bc5e..4375b07c3b 100644 --- a/js/turtleactions/__tests__/DrumActions.test.js +++ b/js/turtleactions/__tests__/DrumActions.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const setupDrumActions = require('../DrumActions'); describe('setupDrumActions', () => { diff --git a/js/turtleactions/__tests__/MeterActions.test.js b/js/turtleactions/__tests__/MeterActions.test.js index 28665ff7fe..145a623c62 100644 --- a/js/turtleactions/__tests__/MeterActions.test.js +++ b/js/turtleactions/__tests__/MeterActions.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const setupMeterActions = require('../MeterActions'); describe('setupMeterActions', () => { diff --git a/js/turtleactions/__tests__/OrnamentActions.test.js b/js/turtleactions/__tests__/OrnamentActions.test.js index 49f3c4f92a..db4755f889 100644 --- a/js/turtleactions/__tests__/OrnamentActions.test.js +++ b/js/turtleactions/__tests__/OrnamentActions.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const setupOrnamentActions = require('../OrnamentActions'); describe('OrnamentActions', () => { let activity, turtleMock; diff --git a/js/turtleactions/__tests__/PitchActions.test.js b/js/turtleactions/__tests__/PitchActions.test.js index 08acee2dbe..4916210c76 100644 --- a/js/turtleactions/__tests__/PitchActions.test.js +++ b/js/turtleactions/__tests__/PitchActions.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const setupPitchActions = require('../PitchActions'); describe('setupPitchActions', () => { diff --git a/js/turtleactions/__tests__/ToneActions.test.js b/js/turtleactions/__tests__/ToneActions.test.js index 4859f661a4..ecedf115d4 100644 --- a/js/turtleactions/__tests__/ToneActions.test.js +++ b/js/turtleactions/__tests__/ToneActions.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const setupToneActions = require('../ToneActions'); describe('setupToneActions', () => { diff --git a/js/turtleactions/__tests__/VolumeActions.test.js b/js/turtleactions/__tests__/VolumeActions.test.js index bc52d7ab8d..7840a2339a 100644 --- a/js/turtleactions/__tests__/VolumeActions.test.js +++ b/js/turtleactions/__tests__/VolumeActions.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Justin Charles + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const setupVolumeActions = require('../VolumeActions'); describe('setupVolumeActions', () => { diff --git a/js/utils/__tests__/mathutils.test.js b/js/utils/__tests__/mathutils.test.js index 0271c4bc17..3f4fa9a27e 100644 --- a/js/utils/__tests__/mathutils.test.js +++ b/js/utils/__tests__/mathutils.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2024 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + // A basic test file in jest framework for the mathutils.js const MathUtility = require('../mathutils'); diff --git a/js/utils/__tests__/munsell.test.js b/js/utils/__tests__/munsell.test.js index 412e46abdb..9f7c87908d 100644 --- a/js/utils/__tests__/munsell.test.js +++ b/js/utils/__tests__/munsell.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2024 Diwangshu Kakoty + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { interpColor, getMunsellColor, getcolor, searchColors } = require('../munsell'); global.createjs = { diff --git a/js/utils/__tests__/musicutils.test.js b/js/utils/__tests__/musicutils.test.js index 5e408d38de..fd63004ec1 100644 --- a/js/utils/__tests__/musicutils.test.js +++ b/js/utils/__tests__/musicutils.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2024 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { TextEncoder } = require('util'); global.TextEncoder = TextEncoder; global._ = jest.fn((str) => str); diff --git a/js/utils/__tests__/platformstyle.test.js b/js/utils/__tests__/platformstyle.test.js index 9893cd9309..ed2bcda28e 100644 --- a/js/utils/__tests__/platformstyle.test.js +++ b/js/utils/__tests__/platformstyle.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2024 omsuneri + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + describe('Platform Style Tests', () => { beforeEach(() => { const meta = document.createElement('meta'); diff --git a/js/utils/__tests__/synthutils.test.js b/js/utils/__tests__/synthutils.test.js index 11618837ba..5e9f80460a 100644 --- a/js/utils/__tests__/synthutils.test.js +++ b/js/utils/__tests__/synthutils.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2025 Shyam Raghuwanshi + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const fs = require('fs'); const path = require('path'); const { TextEncoder, TextDecoder } = require("util") diff --git a/js/utils/__tests__/utils.test.js b/js/utils/__tests__/utils.test.js index 200f87734d..3c58ee33e7 100644 --- a/js/utils/__tests__/utils.test.js +++ b/js/utils/__tests__/utils.test.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2024 ravjot07 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const fs = require('fs'); const path = require('path'); diff --git a/lib/sugar-web/test/functional/datastoreSpec.js b/lib/sugar-web/test/functional/datastoreSpec.js index 530d3f01c5..10567b1c2b 100755 --- a/lib/sugar-web/test/functional/datastoreSpec.js +++ b/lib/sugar-web/test/functional/datastoreSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/bus", "sugar-web/env", "sugar-web/datastore"], function (bus, env, datastore) { 'use strict'; diff --git a/lib/sugar-web/test/functional/toolkitContractSpec.js b/lib/sugar-web/test/functional/toolkitContractSpec.js index 09b83b151f..4de8bc02bb 100755 --- a/lib/sugar-web/test/functional/toolkitContractSpec.js +++ b/lib/sugar-web/test/functional/toolkitContractSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/env"], function (env) { 'use strict'; diff --git a/lib/sugar-web/test/graphics/iconSpec.js b/lib/sugar-web/test/graphics/iconSpec.js index 18fb353b8c..307fd744db 100755 --- a/lib/sugar-web/test/graphics/iconSpec.js +++ b/lib/sugar-web/test/graphics/iconSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/graphics/icon"], function (icon) { 'use strict'; diff --git a/lib/sugar-web/test/graphics/menupaletteSpec.js b/lib/sugar-web/test/graphics/menupaletteSpec.js index 3f4758bb88..b79aae7c1e 100755 --- a/lib/sugar-web/test/graphics/menupaletteSpec.js +++ b/lib/sugar-web/test/graphics/menupaletteSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/graphics/menupalette", "sugar-web/graphics/palette"], function (menupalette, palette) { 'use strict'; diff --git a/lib/sugar-web/test/graphics/paletteSpec.js b/lib/sugar-web/test/graphics/paletteSpec.js index a50fd32bb0..fc59eb9ffd 100755 --- a/lib/sugar-web/test/graphics/paletteSpec.js +++ b/lib/sugar-web/test/graphics/paletteSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/graphics/palette"], function (palette) { 'use strict'; diff --git a/lib/sugar-web/test/graphics/radiobuttonsgroupSpec.js b/lib/sugar-web/test/graphics/radiobuttonsgroupSpec.js index 2c63775cdd..f0e1a79f2e 100755 --- a/lib/sugar-web/test/graphics/radiobuttonsgroupSpec.js +++ b/lib/sugar-web/test/graphics/radiobuttonsgroupSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/graphics/radiobuttonsgroup"], function ( radioButtonsGroup) { diff --git a/lib/sugar-web/test/unit/busSpec.js b/lib/sugar-web/test/unit/busSpec.js index 2a0ecbec2b..d1c732d8ba 100755 --- a/lib/sugar-web/test/unit/busSpec.js +++ b/lib/sugar-web/test/unit/busSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/bus"], function (bus) { 'use strict'; diff --git a/lib/sugar-web/test/unit/datastoreSpec.js b/lib/sugar-web/test/unit/datastoreSpec.js index b166c82a4d..7b1a469775 100755 --- a/lib/sugar-web/test/unit/datastoreSpec.js +++ b/lib/sugar-web/test/unit/datastoreSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/env", "sugar-web/datastore"], function (env, datastore) { 'use strict'; diff --git a/lib/sugar-web/test/unit/dictstoreSpec.js b/lib/sugar-web/test/unit/dictstoreSpec.js index 38528df320..e05b3bbb1b 100755 --- a/lib/sugar-web/test/unit/dictstoreSpec.js +++ b/lib/sugar-web/test/unit/dictstoreSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/dictstore", "sugar-web/env"], function (dictstore, env) { 'use strict'; diff --git a/lib/sugar-web/test/unit/envSpec.js b/lib/sugar-web/test/unit/envSpec.js index 3ed8c593cf..9c819095cf 100755 --- a/lib/sugar-web/test/unit/envSpec.js +++ b/lib/sugar-web/test/unit/envSpec.js @@ -1,3 +1,22 @@ +/** + * @license + * MusicBlocks v3.4.1 + * Copyright (C) 2015 Walter Bender + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + define(["sugar-web/env"], function (env) { 'use strict';