From e44a7e37b6c7b5961adaffc62b9042b8d442938e Mon Sep 17 00:00:00 2001
From: mensonge
Date: Thu, 13 Nov 2008 09:49:11 +0000
Subject: New feature: basic Ajax suggestion for tags and implementation of
Dojo toolkit
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
---
includes/js/dijit/tests/_testCommon.js | 103 +++++++++++++++++++++++++++++++++
1 file changed, 103 insertions(+)
create 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
new file mode 100644
index 0000000..519675f
--- /dev/null
+++ b/includes/js/dijit/tests/_testCommon.js
@@ -0,0 +1,103 @@
+/*
+ _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
'+t+''+'a> | '+ + 'rtl'+'a> | '+ + 'a11y'+'a> | '+ + 'a11y+rtl'+'a> | '+ + // too many potential locales to list, use &locale=[lang] to set + '
jump to: themeTester'+'a> | |||
or: tests folder'+'a> |