Debian Codegraph @

tests/lib/css.js

raw symbols SCIP
1 ( function() {
2 "use strict";
3
4 function includeStyle( url ) {
5 document.write( "<link rel='stylesheet' href='../../../" + url + "'>" );
6 }
7
8 // Find the script element
9 var scripts = document.getElementsByTagName( "script" );
10 var script = scripts[ scripts.length - 1 ];
11
12 // Load the modules
13 var modules = script.getAttribute( "data-modules" );
14 if ( modules ) {
15 modules = modules.split( /\s+/ );
16 for ( var i = 0; i < modules.length; i++ ) {
17 includeStyle( "themes/base/" + modules[ i ] + ".css" );
18 }
19 }
20
21 // Load the QUnit stylesheet
22 includeStyle( "external/qunit/qunit.css" );
23
24 } )();