Restructure file base.

This commit is contained in:
Lars Jung 2015-05-12 16:08:20 +02:00
parent 057a5f05a5
commit ee241e7e3f
151 changed files with 88 additions and 86 deletions

View file

@ -111,7 +111,7 @@ describe('module \'' + ID + '\'', function () {
this.applyFn();
assert.isTrue(this.xAjax.calledOnce);
assert.strictEqual(this.xAjax.lastCall.args[0].url, 'server/php/index.php');
assert.strictEqual(this.xAjax.lastCall.args[0].url, 'index.php');
assert.strictEqual(this.xAjax.lastCall.args[0].type, 'post');
assert.strictEqual(this.xAjax.lastCall.args[0].dataType, 'json');

View file

@ -77,7 +77,7 @@ describe('module \'' + ID + '\'', function () {
it('works', function () {
var instance = this.applyFn();
var ui = this.xSettings.appHref + 'client/images/ui/';
var ui = this.xSettings.appHref + 'public/images/ui/';
assert.strictEqual(instance.image(), ui + 'undefined.svg');
assert.strictEqual(instance.image(1), ui + '1.svg');
@ -97,7 +97,7 @@ describe('module \'' + ID + '\'', function () {
it('works', function () {
var instance = this.applyFn();
var themes = this.xSettings.appHref + 'client/images/themes/';
var themes = this.xSettings.appHref + 'public/images/themes/';
assert.strictEqual(instance.icon(''), themes + 'default/file.svg');
assert.strictEqual(instance.icon('a'), themes + 'myTheme/a.svg');

View file

@ -138,7 +138,7 @@ describe('module \'' + ID + '\'', function () {
$('#login').trigger('click');
assert.isTrue(this.xAjax.calledOnce);
assert.deepEqual(this.xAjax.lastCall.args, [{
url: 'server/php/index.php',
url: 'index.php',
type: 'post',
dataType: 'json',
data: {
@ -193,7 +193,7 @@ describe('module \'' + ID + '\'', function () {
$('#logout').trigger('click');
assert.isTrue(this.xAjax.calledOnce);
assert.deepEqual(this.xAjax.lastCall.args, [{
url: 'server/php/index.php',
url: 'index.php',
type: 'post',
dataType: 'json',
data: {