Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
QUnit.done(function() {
let deprecations = QUnit.config.deprecations;
console.log('Deprecations: ', JSON.stringify(deprecations)); // eslint-disable-line no-console
socket.emit('test-metadata', 'deprecations', deprecations);
});
}
module('Unit | Model | post', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('post', {});
assert.ok(model);
});
});
var QUnit = require('qunit');
var $ = require('jquery');
var equal = require('equal');
// A few QUnit configuration settings
// For more, see: http://api.qunitjs.com/QUnit.config/
QUnit.config.autostart = false;
QUnit.config.reorder = false;
/* Setup variables */
var testList = {};
testList.Name = new Date().toString();
testList.Description = "This is the test description.";
QUnit.test("Version", function (assert) {
var v = $().SPServices.Version();
assert.ok(v !== undefined, "Passed! Ver =::" + v + "::");
});
QUnit.test("SPGetQueryString", function (assert) {
var qs = $().SPServices.SPGetQueryString();
assert.ok(qs !== undefined, "Passed! SPGetQueryString =::" + qs + "::");
});
QUnit.test("SPGetCurrentUser", function (assert) {
var currentUser = $().SPServices.SPGetCurrentUser();
assert.ok(currentUser !== undefined, "Passed! SPCurrentUser =::" + currentUser + "::");
});
QUnit.test("SPGetCurrentSite", function (assert) {
var currentSite = $().SPServices.SPGetCurrentSite();
/* eslint-disable no-console */
'use strict';
const path = require('path');
const QUnit = require('qunit');
const test = QUnit.test;
QUnit.module('Docs coverage', function(hooks) {
let docs, expected;
hooks.before(function() {
if (!process.env.REUSE_DOCS) {
buildDocs();
}
docs = require(path.join(__dirname, '../../dist/docs/data.json'));
expected = require('../fixtures/expected');
});
QUnit.module('modules', function() {
test('We have all expected modules', function(assert) {
assert.deepEqual(Object.keys(docs.modules), expected.modules, 'We have all modules');
});
});
QUnit.module('classitems', function(hooks) {
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | foo', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('foo', {});
assert.ok(model);
});
});
hooks.beforeEach(() => {});
hooks.afterEach(() => {});
hooks.after(() => {});
QUnit.test('it blends', function(assert) {
assert.ok(true, 'of course!');
});
});
// http://rwjblue.com/2017/10/23/ember-qunit-simplication/#setuprenderingtest
module('x-foo', function(hooks) {
setupRenderingTest(hooks);
});
// http://rwjblue.com/2017/10/23/ember-qunit-simplication/#setuptest
module('foo service', function(hooks) {
setupTest(hooks);
});
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('<%= friendlyTestDescription %>', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.owner.lookup('service:<%= dasherizedModuleName %>');
assert.ok(service);
});
});
expectedPixels: new Float32Array([
// NOTE: formatted like rectangle on purpose, so you can see how the texture should look
// NOTE: Packing is 4 per RGBA, so 4 of the 4 channels is used
// NOTE: 3x3
1,2,3,4, 5,6,7,8, 9,10,11,12,
13,14,15,16, 17,18,19,20, 21,22,23,24,
25,26,27,28, 29,30,31,32, 33,0,0,0
]),
expectedDim: new Int32Array([33,1,1]),
expectedSize: new Int32Array([3,3]), // 3 * 3 = 9 * 4 = 36
expectedType: gl.FLOAT,
expectedConstantTextureCount: 1,
});
});
describe('internal WebGL2Kernel.setupConstants Input');
// requires at least 5 entire pixels
test('Input(Array) with unsigned precision 5 length', () => {
setupConstantsTestSuite({
gpuSettings: {
precision: 'unsigned',
output: [4]
},
constant: input([
// NOTE: formatted like rectangle on purpose, so you can see how the texture should look
1, 2, 3, 4,
5, 0
], [2,3]),
expectedBitRatio: 4,
expectedPixels: new Uint8Array(new Float32Array([
// NOTE: formatted like rectangle on purpose, so you can see how the texture should look
1,2,3,4,
!(function(){
var QUnit = require('qunit');
var $ = require('jquery');
var equal = require('equal');
// A few QUnit configuration settings
// For more, see: http://api.qunitjs.com/QUnit.config/
QUnit.config.autostart = false;
QUnit.config.reorder = false;
/* Setup variables */
var testList = {};
testList.Name = new Date().toString();
testList.Description = "This is the test description.";
QUnit.test( "AddList", function(assert) {
assert.expect(2);
var done = assert.async();
var p = $().SPServices({
operation: "AddList",
listName: testList.Name,
description: testList.Description,
templateID: 100
test('getCSS with component definitions constructed from Ractive of different environments', t => {
t.expect(5);
// this test takes a while sometimes
const timeout = QUnit.config.testTimeout;
QUnit.config.testTimeout = 30000;
setTimeout(() => {
QUnit.config.testTimeout = timeout;
}, 10);
const done1 = t.async();
const done2 = t.async();
const done3 = t.async();
const done4 = t.async();
const done5 = t.async();
// Simulate two separate Ractive environments using iframes
Promise.all([createIsolatedEnv(), createIsolatedEnv()]).then(envs => {
const ComponentA = createComponentDefinition(envs[0].Ractive);
const ComponentB = createComponentDefinition(envs[1].Ractive);