mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 757487 - GCLI test suite has broken dependencies in browser; r=dcamp
This commit is contained in:
parent
38b9d38655
commit
b5d0803074
@ -156,10 +156,11 @@ define('gclitest/suite', ['require', 'exports', 'module' , 'gcli/index', 'test/e
|
|||||||
* http://opensource.org/licenses/BSD-3-Clause
|
* http://opensource.org/licenses/BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define('test/examiner', ['require', 'exports', 'module' , 'test/assert'], function(require, exports, module) {
|
define('test/examiner', ['require', 'exports', 'module' , 'test/assert', 'test/status'], function(require, exports, module) {
|
||||||
var examiner = exports;
|
var examiner = exports;
|
||||||
|
|
||||||
var assert = require('test/assert');
|
var assert = require('test/assert');
|
||||||
|
var stati = require('test/status').stati;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test harness data
|
* Test harness data
|
||||||
@ -171,14 +172,6 @@ examiner.suites = {};
|
|||||||
*/
|
*/
|
||||||
var delay = 10;
|
var delay = 10;
|
||||||
|
|
||||||
var stati = {
|
|
||||||
notrun: { index: 0, name: 'Skipped' },
|
|
||||||
executing: { index: 1, name: 'Executing' },
|
|
||||||
asynchronous: { index: 2, name: 'Waiting' },
|
|
||||||
pass: { index: 3, name: 'Pass' },
|
|
||||||
fail: { index: 4, name: 'Fail' }
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a test suite. Generally used like:
|
* Add a test suite. Generally used like:
|
||||||
* test.addSuite('foo', require('path/to/foo'));
|
* test.addSuite('foo', require('path/to/foo'));
|
||||||
@ -580,6 +573,28 @@ define('test/assert', ['require', 'exports', 'module' ], function(require, expor
|
|||||||
* http://opensource.org/licenses/BSD-3-Clause
|
* http://opensource.org/licenses/BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
define('test/status', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This should really be inside assert.js, however that is over-ridden by
|
||||||
|
* a custom assert.js for mozilla, so we keep it separate to avoid
|
||||||
|
* duplicating it in 2 places.
|
||||||
|
*/
|
||||||
|
exports.stati = {
|
||||||
|
notrun: { index: 0, name: 'Skipped' },
|
||||||
|
executing: { index: 1, name: 'Executing' },
|
||||||
|
asynchronous: { index: 2, name: 'Waiting' },
|
||||||
|
pass: { index: 3, name: 'Pass' },
|
||||||
|
fail: { index: 4, name: 'Fail' }
|
||||||
|
};
|
||||||
|
|
||||||
|
});
|
||||||
|
/*
|
||||||
|
* Copyright 2009-2011 Mozilla Foundation and contributors
|
||||||
|
* Licensed under the New BSD license. See LICENSE.txt or:
|
||||||
|
* http://opensource.org/licenses/BSD-3-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
define('gclitest/testCanon', ['require', 'exports', 'module' , 'gclitest/helpers', 'gcli/canon', 'test/assert'], function(require, exports, module) {
|
define('gclitest/testCanon', ['require', 'exports', 'module' , 'gclitest/helpers', 'gcli/canon', 'test/assert'], function(require, exports, module) {
|
||||||
|
|
||||||
var helpers = require('gclitest/helpers');
|
var helpers = require('gclitest/helpers');
|
||||||
@ -4109,6 +4124,7 @@ let testModuleNames = [
|
|||||||
'gclitest/suite',
|
'gclitest/suite',
|
||||||
'test/examiner',
|
'test/examiner',
|
||||||
'test/assert',
|
'test/assert',
|
||||||
|
'test/status',
|
||||||
'gclitest/testCanon',
|
'gclitest/testCanon',
|
||||||
'gclitest/helpers',
|
'gclitest/helpers',
|
||||||
'gclitest/testCli',
|
'gclitest/testCli',
|
||||||
|
Loading…
Reference in New Issue
Block a user