diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/form/tests/test_CheckedMultiSelect.html | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
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
Diffstat (limited to 'includes/js/dojox/form/tests/test_CheckedMultiSelect.html')
-rw-r--r-- | includes/js/dojox/form/tests/test_CheckedMultiSelect.html | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/includes/js/dojox/form/tests/test_CheckedMultiSelect.html b/includes/js/dojox/form/tests/test_CheckedMultiSelect.html deleted file mode 100644 index b8729d2..0000000 --- a/includes/js/dojox/form/tests/test_CheckedMultiSelect.html +++ /dev/null @@ -1,91 +0,0 @@ -<html> - <head> - <script type="text/javascript" - src="../../../dojo/dojo.js" - djConfig="isDebug: true, parseOnLoad: true"> - </script> - <script type="text/javascript"> - dojo.require("doh.runner"); - dojo.require("dojo.parser"); - dojo.require("dojox.form.CheckedMultiSelect"); - dojo.require("dijit.form.Button"); - dojo.require("dijit.form.Form"); - - dojo.addOnLoad(function(){ - doh.register("tests", - [ - function test_setValue(t){ - t.is(["VA","WA"], form.getValues().ms1); - form.setValues({ms1: ["TN","CA"]}); - t.is(["TN","CA"], form.getValues().ms1); - ms1.invertSelection(); - t.is(["VA","WA","FL"], form.getValues().ms1); - }, - function test_addSelected(t){ - ms1.addSelected(ms2); - t.is([], form.getValues().ms2); - ms1.invertSelection(); - t.is(["TN","CA"], form.getValues().ms1); - }, - ] - ); - doh.run(); - dojo.connect(ms1, "onChange", function(val){ - console.log("First Select Changed to " + val); - }); - }); - </script> - <style> - @import url(../../../dojo/resources/dojo.css); - @import url(../../../dijit/themes/tundra/tundra.css); - @import url(../resources/CheckedMultiSelect.css); - @import url(../../../dijit/tests/css/dijitTests.css); - </style> - </head> - <body class="tundra"> - <h1 class="testTitle">Test: dojox.form.CheckedMultiSelect</h1> - <h2>Automated test</h2> - <form dojoType="dijit.form.Form" jsId="form"> - <select jsId="ms1" multiple="true" name="ms1" dojoType="dojox.form.CheckedMultiSelect"> - <option value="TN">Tennessee</option> - <option value="VA" selected="selected">Virginia</option> - <option value="WA" selected="selected">Washington</option> - <option value="FL">Florida</option> - <option value="CA">California</option> - </select> - <hr> - <select jsId="ms2" multiple="true" name="ms2" dojoType="dojox.form.CheckedMultiSelect"> - <option value="UT">Utah</option> - <option value="TX" selected="selected">Texas</option> - <option value="GA" selected="selected">Georgia</option> - <option value="ID">Idaho</option> - <option value="WY">Wyoming</option> - <option value="OR">Oregon</option> - <option value="PA">Pennsylvania</option> - </select> - <hr> - <select jsId="ms3" multiple="true" name="ms3" dojoType="dojox.form.CheckedMultiSelect"> - </select> - <hr> - <button dojoType="dijit.form.Button"> - <script type="dojo/method" event="onClick"> - console.dir(form.getValues()); - </script> - Get Values - </button> - <button dojoType="dijit.form.Button"> - <script type="dojo/method" event="onClick"> - var idx = dojo.query("option", ms3.domNode).length; - ms3.addOption(idx + "", "Option " + (idx + 1)); - </script> - Add Option - </button> - <button dojoType="dijit.form.Button"> - <script type="dojo/method" event="onClick"> - ms3.setAttribute("disabled", !ms3.disabled); - </script> - Toggle Disabled - </button> - </form> - </body> -</html> |