Implement mw.Title in core
[lhc/web/wiklou.git] / tests / qunit / jquery.qunit.completenessTest.config.js
1 // Return true to ignore
2 var mwTestIgnore = function( val, tester, funcPath ) {
3
4 // Don't record methods of the properties of constructors,
5 // to avoid getting into a loop (prototype.constructor.prototype..).
6 // Since we're therefor skipping any injection for
7 // "new mw.Foo()", manually set it to true here.
8 if ( val instanceof mw.Map ) {
9 tester.methodCallTracker['Map'] = true;
10 return true;
11 }
12 if ( val instanceof mw.Title ) {
13 tester.methodCallTracker['Title'] = true;
14 return true;
15 }
16
17 // Don't record methods of the properties of a jQuery object
18 if ( val instanceof $ ) {
19 return true;
20 }
21
22 return false;
23 };
24
25 var mwTester = new CompletenessTest( mw, mwTestIgnore );