From 1c5685d68f1b73270fb814fe04cbb490eb90ba5f Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 14 Nov 2008 15:39:19 +0000 Subject: Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f --- includes/js/dijit/tests/_testCommon.js | 103 --------------------------------- 1 file changed, 103 deletions(-) delete mode 100644 includes/js/dijit/tests/_testCommon.js (limited to 'includes/js/dijit/tests/_testCommon.js') diff --git a/includes/js/dijit/tests/_testCommon.js b/includes/js/dijit/tests/_testCommon.js deleted file mode 100644 index 519675f..0000000 --- a/includes/js/dijit/tests/_testCommon.js +++ /dev/null @@ -1,103 +0,0 @@ -/* - _testCommon.js - a simple module to be included in dijit test pages to allow - for easy switching between the many many points of the test-matrix. - - in your test browser, provides a way to switch between available themes, - and optionally enable RTL (right to left) mode, and/or dijit_a11y (high- - constrast/image off emulation) ... probably not a genuine test for a11y. - - usage: on any dijit test_* page, press ctrl-f9 to popup links. - - there are currently (2 themes * 4 tests) * (10 variations of supported browsers) - not including testing individual locale-strings - - you should not be using this in a production enviroment. include - your css and set your classes manually. for test purposes only ... -*/ - -(function(){ - var d = dojo; - var theme = false; var testMode; - if(window.location.href.indexOf("?") > -1){ - var str = window.location.href.substr(window.location.href.indexOf("?")+1).split(/#/); - var ary = str[0].split(/&/); - for(var i=0; i'); - document.write(''); - - if(dojo.config.parseOnLoad){ - dojo.config.parseOnLoad = false; - dojo.config._deferParsing = true; - } - - d.addOnLoad(function(){ - - // set the classes - if(!d.hasClass(d.body(),theme)){ d.addClass(d.body(),theme); } - if(testMode){ d.addClass(d.body(),testMode); } - - // test-link matrix code: - var node = document.createElement('div'); - node.id = "testNodeDialog"; - d.addClass(node,"dijitTestNodeDialog"); - d.body().appendChild(node); - - _populateTestDialog(node); - - d.connect(document,"onkeypress", function _testNodeShow(/* Event */evt){ - var key = (evt.charCode == d.keys.SPACE ? d.keys.SPACE : evt.keyCode); - if(evt.ctrlKey && (key == d.keys.F9)){ // F9 is generic enough? - d.style('testNodeDialog',"top",(dijit.getViewport().t + 4) +"px"); - d.toggleClass('testNodeDialog',"dijitTestNodeShowing"); - } - }); - - if(dojo.config._deferParsing){ d.parser.parse(d.body()); } - - }); - - var _populateTestDialog = function(/* DomNode */node){ - // pseudo-function to populate our test-martix-link pop-up - var base = window.location.pathname; - var str = ""; - var themes = ["tundra",/*"noir", */ "soria", "nihilo" /* ,"squid" */ ]; - str += "Tests:
"; - d.forEach(themes,function(t){ - str += ''+ - ''+ - ''+ - ''+ - // too many potential locales to list, use &locale=[lang] to set - ''; - }); - str += ''; - str += ''; - node.innerHTML = str + "
'+t+'rtla11ya11y+rtl
jump to: themeTester
or: tests folder
"; - } -})(); -- cgit v1.2.3