Add license headers

This commit is contained in:
Christoph Diehl 2017-04-22 23:16:47 +03:00
parent e021430b3a
commit 22085d0531
20 changed files with 80 additions and 0 deletions

View file

@ -1,3 +1,7 @@
/* 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/. */
make.arrays = { make.arrays = {
filledArray: function (fn, limit) { filledArray: function (fn, limit) {
let array = []; let array = [];

View file

@ -1,3 +1,7 @@
/* 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/. */
make.colors = { make.colors = {
colors: function () { colors: function () {
return random.pick([ return random.pick([

View file

@ -1,3 +1,7 @@
/* 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/. */
make.files = { make.files = {
image: function () { image: function () {
return utils.quote(random.pick([ return utils.quote(random.pick([

View file

@ -1,3 +1,7 @@
/* 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/. */
make.fonts = { make.fonts = {
fontStyles: function () { fontStyles: function () {
return ["italic", "normal", "oblique", "inherit"]; return ["italic", "normal", "oblique", "inherit"];

View file

@ -1,3 +1,7 @@
/* 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/. */
make.mime = { make.mime = {
type: function () { type: function () {
return random.pick([ return random.pick([

View file

@ -1,3 +1,7 @@
/* 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/. */
make.network = { make.network = {
sdp: function () { sdp: function () {
// session description protocol template // session description protocol template

View file

@ -1,3 +1,7 @@
/* 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/. */
make.numbers = { make.numbers = {
bool: function () { bool: function () {
return random.bool(); return random.bool();

View file

@ -1,3 +1,7 @@
/* 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/. */
make.shaders = { make.shaders = {
fragment1: function () { fragment1: function () {
return [ return [

View file

@ -1,3 +1,7 @@
/* 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/. */
make.strings = { make.strings = {
toString: function (object) { toString: function (object) {
return object ? object.toSource() : '' + object return object ? object.toSource() : '' + object

View file

@ -1,3 +1,7 @@
/* 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/. */
make.text = { make.text = {
lineEnd: function () { lineEnd: function () {
return random.pick([ return random.pick([

View file

@ -1,3 +1,7 @@
/* 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/. */
make.types = { make.types = {
random: function () { random: function () {
return random.item([ return random.item([

View file

@ -1,3 +1,7 @@
/* 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/. */
make.units = { make.units = {
lengthUnit: function () { lengthUnit: function () {
return random.pick([ return random.pick([

View file

@ -1,3 +1,7 @@
/* 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/. */
var random = { var random = {
twister: null, twister: null,

View file

@ -1,3 +1,7 @@
<!-- 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/. -->
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>

View file

@ -1,3 +1,7 @@
/* 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/. */
QUnit.test("MersenneTwister test uniform distribution", function(assert) { QUnit.test("MersenneTwister test uniform distribution", function(assert) {
const N = Math.pow(2, 17), TRIES = 10, XSQ = 293.25; // quantile of chi-square dist. k=255, p=.05 const N = Math.pow(2, 17), TRIES = 10, XSQ = 293.25; // quantile of chi-square dist. k=255, p=.05
let mt = new MersenneTwister(); let mt = new MersenneTwister();

View file

@ -1,3 +1,7 @@
/* 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/. */
QUnit.test("random.init() is required", function(assert) { QUnit.test("random.init() is required", function(assert) {
assert.throws(random.number, /undefined/, "twister should be uninitialized before random.init()"); assert.throws(random.number, /undefined/, "twister should be uninitialized before random.init()");
random.init(1); random.init(1);

View file

@ -1,3 +1,7 @@
/* 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/. */
utils.block = { utils.block = {
block: function (list, optional) { block: function (list, optional) {
if (optional == true) { if (optional == true) {

View file

@ -1,3 +1,7 @@
/* 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/. */
utils.common = { utils.common = {
objToString: function (obj) { objToString: function (obj) {
try { try {

View file

@ -1,3 +1,7 @@
/* 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/. */
utils.platform = { utils.platform = {
platform: function () { platform: function () {
var version, webkitVersion, platform = {}; var version, webkitVersion, platform = {};

View file

@ -1,3 +1,7 @@
/* 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/. */
utils.script = { utils.script = {
methodHead: function (list, numOptional) { methodHead: function (list, numOptional) {
if (isNaN(numOptional)) { if (isNaN(numOptional)) {