dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Use .toc instead of #toc as selector for TOC"
[lhc/web/wiklou.git]
/
tests
/
qunit
/
suites
/
resources
/
mediawiki
/
mediawiki.inspect.test.js
diff --git
a/tests/qunit/suites/resources/mediawiki/mediawiki.inspect.test.js
b/tests/qunit/suites/resources/mediawiki/mediawiki.inspect.test.js
index
3bd15c4
..
1f7a5ec
100644
(file)
--- a/
tests/qunit/suites/resources/mediawiki/mediawiki.inspect.test.js
+++ b/
tests/qunit/suites/resources/mediawiki/mediawiki.inspect.test.js
@@
-1,7
+1,4
@@
( function ( mw ) {
( function ( mw ) {
- // Whitespace and serialisation of function bodies
- // different in browsers.
- var functionSize = String( function () {} ).length;
QUnit.module( 'mediawiki.inspect' );
QUnit.module( 'mediawiki.inspect' );
@@
-13,9
+10,9
@@
return mw.loader.using( 'test.inspect.script' ).then( function () {
assert.equal(
return mw.loader.using( 'test.inspect.script' ).then( function () {
assert.equal(
- mw.inspect.getModuleSize( 'test.inspect.script' )
- functionSize
,
+ mw.inspect.getModuleSize( 'test.inspect.script' ),
// name, script function
// name, script function
-
32
,
+
43
,
'test.inspect.script'
);
} );
'test.inspect.script'
);
} );
@@
-30,9
+27,9
@@
return mw.loader.using( 'test.inspect.both' ).then( function () {
assert.equal(
return mw.loader.using( 'test.inspect.both' ).then( function () {
assert.equal(
- mw.inspect.getModuleSize( 'test.inspect.both' )
- functionSize
,
+ mw.inspect.getModuleSize( 'test.inspect.both' ),
// name, script function, styles object
// name, script function, styles object
-
5
4,
+
6
4,
'test.inspect.both'
);
} );
'test.inspect.both'
);
} );
@@
-48,9
+45,9
@@
return mw.loader.using( 'test.inspect.scriptmsg' ).then( function () {
assert.equal(
return mw.loader.using( 'test.inspect.scriptmsg' ).then( function () {
assert.equal(
- mw.inspect.getModuleSize( 'test.inspect.scriptmsg' )
- functionSize
,
+ mw.inspect.getModuleSize( 'test.inspect.scriptmsg' ),
// name, script function, empty styles object, messages object
// name, script function, empty styles object, messages object
-
65
,
+
74
,
'test.inspect.scriptmsg'
);
} );
'test.inspect.scriptmsg'
);
} );
@@
-67,9
+64,9
@@
return mw.loader.using( 'test.inspect.all' ).then( function () {
assert.equal(
return mw.loader.using( 'test.inspect.all' ).then( function () {
assert.equal(
- mw.inspect.getModuleSize( 'test.inspect.all' )
- functionSize
,
+ mw.inspect.getModuleSize( 'test.inspect.all' ),
// name, script function, styles object, messages object, templates object
// name, script function, styles object, messages object, templates object
- 1
18
,
+ 1
26
,
'test.inspect.all'
);
} );
'test.inspect.all'
);
} );