old_sql 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +179 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +814 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +1703 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +755 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +1197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +168 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +187 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +300 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +524 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +420 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +142 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +240 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +508 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +244 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +385 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +384 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +1161 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +447 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +113 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +767 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +1445 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +651 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +1143 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +145 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +258 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +454 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +348 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +128 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +26 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +498 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +895 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +83 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +401 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +10 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +96 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +4 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +95 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +42 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +90 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +189 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +36 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +65 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +483 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +62 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +373 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +5 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +85 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +46 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +11 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +74 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +125 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +59 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +3 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +45 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +119 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +91 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +93 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +64 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +66 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +177 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +339 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +22 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +622 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +70 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +130 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +682 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +1489 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +863 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +1256 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +222 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +793 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +304 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +844 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +315 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +188 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +115 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +236 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +415 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +897 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +589 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +594 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +162 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +2026 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +7829 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +251 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +381 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +159 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +25 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +16 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +577 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +137 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +52 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +89 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +408 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +34 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +84 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +363 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +32 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +295 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +223 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +481 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +406 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +683 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +756 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +2177 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +705 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +348 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +247 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +9 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +723 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/README +1 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +302 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +139 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +172 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +81 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +155 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +50 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +428 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +330 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +368 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +256 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +436 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +299 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +159 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +64 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +334 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +304 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +144 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +62 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +37 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +31 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +25 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +143 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +56 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +133 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +136 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +38 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +43 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +53 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +61 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +6 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +141 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +26 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +147 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +24 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +89 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +66 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +20 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +31 -0
- metadata +264 -2
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<script type="text/javascript" src="../lib/MochiKit/MockDOM.js"></script>
|
|
4
|
+
<script type="text/javascript" src="../lib/MochiKit/Base.js"></script>
|
|
5
|
+
<script type="text/javascript" src="../lib/MochiKit/Iter.js"></script>
|
|
6
|
+
<script type="text/javascript" src="../lib/MochiKit/DOM.js"></script>
|
|
7
|
+
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
8
|
+
<script type="text/javascript" src="../lib/MochiKit/Selector.js"></script>
|
|
9
|
+
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
10
|
+
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
11
|
+
<style type="text/css">
|
|
12
|
+
p, #sequence {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
<p>Test originally from <a href="http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector" rel="bookmark">this blog entry</a>.</p>
|
|
19
|
+
|
|
20
|
+
<p>Here are some links in a normal paragraph: <a href="http://www.google.com/" title="Google!">Google</a>, <a href="http://groups.google.com/">Google Groups</a>. This link has <code>class="blog"</code>: <a href="http://diveintomark.org/" class="blog" fakeattribute="bla">diveintomark</a></p>
|
|
21
|
+
<div id="foo">
|
|
22
|
+
<p>Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
|
|
23
|
+
<p>This is a normal link: <a href="http://www.yahoo.com/">Yahoo</a></p>
|
|
24
|
+
|
|
25
|
+
<a style="display: none" href="http://www.example.com/outsidep">This a is not inside a p</a>
|
|
26
|
+
|
|
27
|
+
<p>This link has <code>class="blog"</code>: <a href="http://simon.incutio.com/" class="blog">Simon Willison's Weblog</a></p>
|
|
28
|
+
<p>This <span><a href="http://www.example.com/insidespan">link</a></span> is inside a span, not directly child of p</p>
|
|
29
|
+
<p lang="en-us">Nonninn</p>
|
|
30
|
+
<p lang="is-IS">Sniðugt</p>
|
|
31
|
+
<p>
|
|
32
|
+
<input type="button" name="enabled" value="enabled" id="enabled">
|
|
33
|
+
<input type="button" name="disabled" value="disabled" id="disabled" disabled="1" />
|
|
34
|
+
<input type="checkbox" name="checked" value="checked" id="checked" checked="1" />
|
|
35
|
+
</p>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div id="sequence">
|
|
39
|
+
<a href="http://www.example.com/link1">Link 1</a>
|
|
40
|
+
<a href="http://www.example.com/link2">Link 2</a>
|
|
41
|
+
<a href="http://www.example.com/link3">Link 3</a>
|
|
42
|
+
<a href="http://www.example.com/link4">Link 4</a>
|
|
43
|
+
<p>Something else</p>
|
|
44
|
+
<a href="http://www.example.com/link5">Link 5</a>
|
|
45
|
+
<a href="http://www.example.com/link6">Link 6</a>
|
|
46
|
+
<a href="http://www.example.com/link7">Link 7</a>
|
|
47
|
+
<a href="http://www.example.com/link8">Link 8</a>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div id="multiclass" class="multiple classnames here"></div>
|
|
51
|
+
<pre id="test">
|
|
52
|
+
<script type="text/javascript">
|
|
53
|
+
try {
|
|
54
|
+
|
|
55
|
+
var testExpected = function (res, exp, lbl) {
|
|
56
|
+
for (var i=0; i < res.length; i ++) {
|
|
57
|
+
is( res[i].href, exp[i], lbl + ' (' + i + ')');
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var expected = ['http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector',
|
|
62
|
+
'http://www.google.com/',
|
|
63
|
+
'http://groups.google.com/',
|
|
64
|
+
'http://diveintomark.org/',
|
|
65
|
+
'http://www.yahoo.com/',
|
|
66
|
+
'http://www.example.com/outsidep',
|
|
67
|
+
'http://simon.incutio.com/',
|
|
68
|
+
'http://www.example.com/insidespan',
|
|
69
|
+
'http://www.example.com/link1',
|
|
70
|
+
'http://www.example.com/link2',
|
|
71
|
+
'http://www.example.com/link3',
|
|
72
|
+
'http://www.example.com/link4',
|
|
73
|
+
'http://www.example.com/link5',
|
|
74
|
+
'http://www.example.com/link6',
|
|
75
|
+
'http://www.example.com/link7',
|
|
76
|
+
'http://www.example.com/link8'];
|
|
77
|
+
var results = $$('a');
|
|
78
|
+
testExpected(results, expected, "'a' selector");
|
|
79
|
+
|
|
80
|
+
expected = ['http://diveintomark.org/', 'http://simon.incutio.com/'];
|
|
81
|
+
results = $$('p a.blog');
|
|
82
|
+
testExpected(results, expected, "'p a.blog' selector");
|
|
83
|
+
|
|
84
|
+
expected = ['http://www.yahoo.com/',
|
|
85
|
+
'http://www.example.com/outsidep',
|
|
86
|
+
'http://simon.incutio.com/',
|
|
87
|
+
'http://www.example.com/insidespan',
|
|
88
|
+
'http://www.example.com/link1',
|
|
89
|
+
'http://www.example.com/link2',
|
|
90
|
+
'http://www.example.com/link3',
|
|
91
|
+
'http://www.example.com/link4',
|
|
92
|
+
'http://www.example.com/link5',
|
|
93
|
+
'http://www.example.com/link6',
|
|
94
|
+
'http://www.example.com/link7',
|
|
95
|
+
'http://www.example.com/link8'];
|
|
96
|
+
results = $$('div a');
|
|
97
|
+
testExpected(results, expected, "'div a' selector");
|
|
98
|
+
|
|
99
|
+
expected = ['http://www.yahoo.com/',
|
|
100
|
+
'http://www.example.com/outsidep',
|
|
101
|
+
'http://simon.incutio.com/',
|
|
102
|
+
'http://www.example.com/insidespan'];
|
|
103
|
+
results = $$('div#foo a');
|
|
104
|
+
testExpected(results, expected, "'div#foo a' selector");
|
|
105
|
+
|
|
106
|
+
expected = ['http://simon.incutio.com/',
|
|
107
|
+
'http://www.example.com/insidespan'];
|
|
108
|
+
results = $$('#foo a.blog');
|
|
109
|
+
testExpected(results, expected, "'#foo a.blog' selector");
|
|
110
|
+
|
|
111
|
+
expected = ['http://diveintomark.org/',
|
|
112
|
+
'http://simon.incutio.com/',
|
|
113
|
+
'http://www.example.com/insidespan'];
|
|
114
|
+
results = $$('.blog');
|
|
115
|
+
testExpected(results, expected, "'.blog' selector");
|
|
116
|
+
|
|
117
|
+
expected = ['http://www.google.com/',
|
|
118
|
+
'http://www.yahoo.com/',
|
|
119
|
+
'http://www.example.com/outsidep',
|
|
120
|
+
'http://www.example.com/insidespan',
|
|
121
|
+
'http://www.example.com/link1',
|
|
122
|
+
'http://www.example.com/link2',
|
|
123
|
+
'http://www.example.com/link3',
|
|
124
|
+
'http://www.example.com/link4',
|
|
125
|
+
'http://www.example.com/link5',
|
|
126
|
+
'http://www.example.com/link6',
|
|
127
|
+
'http://www.example.com/link7',
|
|
128
|
+
'http://www.example.com/link8'];
|
|
129
|
+
results = $$('a[href^="http://www"]');
|
|
130
|
+
testExpected(results, expected, "'a[href^=http://www]' selector");
|
|
131
|
+
|
|
132
|
+
expected = ['http://diveintomark.org/'];
|
|
133
|
+
results = $$('a[href$="org/"]');
|
|
134
|
+
testExpected(results, expected, "'a[href$=org/]' selector");
|
|
135
|
+
|
|
136
|
+
expected = ['http://www.google.com/',
|
|
137
|
+
'http://groups.google.com/'];
|
|
138
|
+
results = $$('a[href*="google"]');
|
|
139
|
+
testExpected(results, expected, "'a[href*=google]' selector");
|
|
140
|
+
|
|
141
|
+
expected = ['http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector'];
|
|
142
|
+
results = $$('a[rel="bookmark"]');
|
|
143
|
+
testExpected(results, expected, "'a[rel=bookmark]' selector");
|
|
144
|
+
|
|
145
|
+
expected = ['http://diveintomark.org/'];
|
|
146
|
+
results = $$('a[fakeattribute]');
|
|
147
|
+
testExpected(results, expected, "'a[fakeattribute]' selector");
|
|
148
|
+
|
|
149
|
+
/* This doesn't work in IE due to silly DOM implementation
|
|
150
|
+
expected = ['http://www.google.com/'];
|
|
151
|
+
results = $$('a[title]');
|
|
152
|
+
testExpected(results, expected, "'a[title]' selector");
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
// Test attribute operators (also for elements not having the attribute)
|
|
156
|
+
results = $$('p[lang="en-us"]');
|
|
157
|
+
is( results[0].firstChild.nodeValue, 'Nonninn', "'p[lang=en-us]' selector");
|
|
158
|
+
results = $$('p[lang!="is-IS"]');
|
|
159
|
+
is( results[0].firstChild.nodeValue, 'Nonninn', "'p[lang!=is-IS]' selector");
|
|
160
|
+
results = $$('p[lang~="en-us"]');
|
|
161
|
+
is( results[0].firstChild.nodeValue, 'Nonninn', "'p[lang~=en-us]' selector");
|
|
162
|
+
results = $$('p[lang^="en"]');
|
|
163
|
+
is( results[0].firstChild.nodeValue, 'Nonninn', "'p[lang^=en]' selector");
|
|
164
|
+
results = $$('p[lang$="us"]');
|
|
165
|
+
is( results[0].firstChild.nodeValue, 'Nonninn', "'p[lang$=us]' selector");
|
|
166
|
+
results = $$('p[lang*="-u"]');
|
|
167
|
+
is( results[0].firstChild.nodeValue, 'Nonninn', "'p[lang*=-u]' selector");
|
|
168
|
+
results = $$('p[lang|="en"]');
|
|
169
|
+
is( results[0].firstChild.nodeValue, 'Nonninn', "'p[lang|=en]' selector");
|
|
170
|
+
|
|
171
|
+
expected = ['http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector',
|
|
172
|
+
'http://www.google.com/',
|
|
173
|
+
'http://groups.google.com/',
|
|
174
|
+
'http://diveintomark.org/',
|
|
175
|
+
'http://www.yahoo.com/',
|
|
176
|
+
'http://simon.incutio.com/',
|
|
177
|
+
'http://www.example.com/insidespan'];
|
|
178
|
+
results = $$('p > a');
|
|
179
|
+
testExpected(results, expected, "'p > a' selector");
|
|
180
|
+
|
|
181
|
+
expected = ['http://www.example.com/insidespan'];
|
|
182
|
+
results = $$('span > a');
|
|
183
|
+
testExpected(results, expected, "'span > a' selector");
|
|
184
|
+
|
|
185
|
+
expected = ['http://groups.google.com/',
|
|
186
|
+
'http://www.example.com/link2',
|
|
187
|
+
'http://www.example.com/link3',
|
|
188
|
+
'http://www.example.com/link4',
|
|
189
|
+
'http://www.example.com/link6',
|
|
190
|
+
'http://www.example.com/link7',
|
|
191
|
+
'http://www.example.com/link8'];
|
|
192
|
+
results = $$('a + a');
|
|
193
|
+
testExpected(results, expected, "'a + a' selector");
|
|
194
|
+
|
|
195
|
+
expected = ['http://www.example.com/outsidep',
|
|
196
|
+
'http://www.example.com/link5',
|
|
197
|
+
'http://www.example.com/link6',
|
|
198
|
+
'http://www.example.com/link7',
|
|
199
|
+
'http://www.example.com/link8'];
|
|
200
|
+
results = $$('p ~ a');
|
|
201
|
+
testExpected(results, expected, "'p ~ a' selector");
|
|
202
|
+
|
|
203
|
+
expected = ['http://www.example.com/link1',
|
|
204
|
+
'http://www.example.com/link3',
|
|
205
|
+
'http://www.example.com/link6',
|
|
206
|
+
'http://www.example.com/link8'];
|
|
207
|
+
results = $$('#sequence a:nth-child(odd)');
|
|
208
|
+
testExpected(results, expected, "'#sequence a:nth-child(odd)' selector");
|
|
209
|
+
|
|
210
|
+
expected = ['http://www.example.com/link1',
|
|
211
|
+
'http://www.example.com/link3',
|
|
212
|
+
'http://www.example.com/link5',
|
|
213
|
+
'http://www.example.com/link7'];
|
|
214
|
+
results = $$('#sequence a:nth-of-type(odd)');
|
|
215
|
+
testExpected(results, expected, "'#sequence a:nth-of-type(odd)' selector");
|
|
216
|
+
|
|
217
|
+
expected = ['http://www.example.com/link1',
|
|
218
|
+
'http://www.example.com/link4',
|
|
219
|
+
'http://www.example.com/link7'];
|
|
220
|
+
results = $$('#sequence a:nth-of-type(3n+1)');
|
|
221
|
+
testExpected(results, expected, "'#sequence a:nth-of-type(3n+1)' selector");
|
|
222
|
+
|
|
223
|
+
expected = ['http://www.example.com/link5'];
|
|
224
|
+
results = $$('#sequence a:nth-child(6)');
|
|
225
|
+
testExpected(results, expected, "'#sequence a:nth-child(6)' selector");
|
|
226
|
+
|
|
227
|
+
expected = ['http://www.example.com/link5'];
|
|
228
|
+
results = $$('#sequence a:nth-of-type(5)');
|
|
229
|
+
testExpected(results, expected, "'#sequence a:nth-of-type(5)' selector");
|
|
230
|
+
|
|
231
|
+
expected = [$('enabled'), $('checked')];
|
|
232
|
+
results = $$('body :enabled');
|
|
233
|
+
for (var i=0; i < results.length; i ++) {
|
|
234
|
+
is( results[i], expected[i], "'body :enabled" + ' (' + i + ')');
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
expected = [$('disabled')];
|
|
238
|
+
results = $$('body :disabled');
|
|
239
|
+
for (var i=0; i < results.length; i ++) {
|
|
240
|
+
is( results[i], expected[i], "'body :disabled" + ' (' + i + ')');
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
expected = [$('checked')];
|
|
244
|
+
results = $$('body :checked');
|
|
245
|
+
for (var i=0; i < results.length; i ++) {
|
|
246
|
+
is( results[i], expected[i], "'body :checked" + ' (' + i + ')');
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
expected = document.getElementsByTagName('p');
|
|
250
|
+
results = $$('a[href$=outsidep] ~ *');
|
|
251
|
+
for (var i=0; i < results.length; i ++) {
|
|
252
|
+
is( results[i], expected[i+4], "'a[href$=outsidep] ~ *' selector" + ' (' + i + ')');
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
expected = [document.documentElement];
|
|
256
|
+
results = $$(':root');
|
|
257
|
+
for (var i=0; i < results.length; i ++) {
|
|
258
|
+
is( results[i], expected[i], "':root' selector" + ' (' + i + ')');
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
expected = [$('multiclass')];
|
|
262
|
+
results = $$('[class~=classnames]');
|
|
263
|
+
for (var i=0; i < results.length; i ++) {
|
|
264
|
+
is( results[i], expected[i], "'~=' attribute test" + ' (' + i + ')');
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
var doc = MochiKit.MockDOM.createDocument();
|
|
268
|
+
appendChildNodes(doc.body, A({"href": "http://www.example.com/insideAnotherDocument"}, "Inside a document"));
|
|
269
|
+
withDocument(doc, function(){
|
|
270
|
+
is( $$(":root")[0], doc, ":root on a different document" );
|
|
271
|
+
is( $$("a")[0], doc.body.firstChild, "a inside a different document" );
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
ok( true, "test suite finished!");
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
} catch (err) {
|
|
278
|
+
|
|
279
|
+
var s = "test suite failure!\n";
|
|
280
|
+
var o = {};
|
|
281
|
+
var k = null;
|
|
282
|
+
for (k in err) {
|
|
283
|
+
// ensure unique keys?!
|
|
284
|
+
if (!o[k]) {
|
|
285
|
+
s += k + ": " + err[k] + "\n";
|
|
286
|
+
o[k] = err[k];
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
ok ( false, s );
|
|
290
|
+
|
|
291
|
+
}
|
|
292
|
+
</script>
|
|
293
|
+
</pre>
|
|
294
|
+
</body>
|
|
295
|
+
</html>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<script type="text/javascript" src="../lib/MochiKit/Base.js"></script>
|
|
4
|
+
<script type="text/javascript" src="../lib/MochiKit/Iter.js"></script>
|
|
5
|
+
<script type="text/javascript" src="../lib/MochiKit/DOM.js"></script>
|
|
6
|
+
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
7
|
+
<script type="text/javascript" src="../lib/MochiKit/Signal.js"></script>
|
|
8
|
+
<script type="text/javascript" src="../lib/MochiKit/Logging.js"></script>
|
|
9
|
+
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
10
|
+
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
11
|
+
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
|
|
15
|
+
Please ignore this button: <input type="submit" id="submit" /><br />
|
|
16
|
+
|
|
17
|
+
<pre id="test">
|
|
18
|
+
<script type="text/javascript" src="test_Signal.js"></script>
|
|
19
|
+
<script type="text/javascript">
|
|
20
|
+
try {
|
|
21
|
+
|
|
22
|
+
tests.test_Signal({ok:ok, is:is});
|
|
23
|
+
ok(true, "test suite finished!");
|
|
24
|
+
|
|
25
|
+
} catch (err) {
|
|
26
|
+
|
|
27
|
+
var s = "test suite failure!\n";
|
|
28
|
+
var o = {};
|
|
29
|
+
var k = null;
|
|
30
|
+
for (k in err) {
|
|
31
|
+
// ensure unique keys?!
|
|
32
|
+
if (!o[k]) {
|
|
33
|
+
s += k + ": " + err[k] + "\n";
|
|
34
|
+
o[k] = err[k];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
ok(false, s);
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
</pre>
|
|
42
|
+
</body>
|
|
43
|
+
</html>
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<script type="text/javascript" src="../lib/MochiKit/MockDOM.js"></script>
|
|
5
|
+
<script type="text/javascript" src="../lib/MochiKit/Base.js"></script>
|
|
6
|
+
<script type="text/javascript" src="../lib/MochiKit/DOM.js"></script>
|
|
7
|
+
<script type="text/javascript" src="../lib/MochiKit/Iter.js"></script>
|
|
8
|
+
<script type="text/javascript" src="../lib/MochiKit/Style.js"></script>
|
|
9
|
+
<script type="text/javascript" src="../lib/MochiKit/Color.js"></script>
|
|
10
|
+
<script type="text/javascript" src="../lib/MochiKit/Logging.js"></script>
|
|
11
|
+
<script type="text/javascript" src="SimpleTest/SimpleTest.js"></script>
|
|
12
|
+
<link rel="stylesheet" type="text/css" href="SimpleTest/test.css">
|
|
13
|
+
<style type="text/css">
|
|
14
|
+
#hideTest {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body style="border: 0; margin: 0; padding: 0;">
|
|
20
|
+
|
|
21
|
+
<div id="styleTest" style="position: absolute; left: 400px; top: 100px; width: 100px; height: 80px; padding: 10px 20px 30px 40px; border-width: 1px 2px 3px 4px; border-style: solid; border-color: blue; background: red; opacity: 0.5; filter: alpha(opacity=50); font-size: 10px; overflow-x: visible; overflow-y: hidden;"><div id="innerDiv"></div>TEST<span id="styleSubTest">SUB</span><div id="floatTest" style="float: left;">Float</div></div>
|
|
22
|
+
|
|
23
|
+
<div id="hideTest" style="width: 100px; height: 100px;"><div id="innerHideTest" style="width: 10px; height: 10px;"></div></div>
|
|
24
|
+
|
|
25
|
+
<table id="testTable" border="0" cellspacing="0" cellpadding="0"
|
|
26
|
+
style="position:absolute;left: 400px; top:300px;line-height:20px;"><tr align="center">
|
|
27
|
+
<td id="testCell1" style="width: 80px; height: 30px; border:2px solid blue">1</td>
|
|
28
|
+
<td id="testCell2" style="width: 80px; height: 30px; border:2px solid blue">2</td>
|
|
29
|
+
<td id="testCell3" style="width: 80px; height: 30px; border:2px solid blue">3</td>
|
|
30
|
+
</tr></table>
|
|
31
|
+
|
|
32
|
+
<pre id="test">
|
|
33
|
+
<script type="text/javascript">
|
|
34
|
+
|
|
35
|
+
try {
|
|
36
|
+
|
|
37
|
+
// initial
|
|
38
|
+
var pos = getElementPosition('styleTest');
|
|
39
|
+
is(pos.x, 400, 'initial x position');
|
|
40
|
+
is(pos.y, 100, 'initial y position');
|
|
41
|
+
|
|
42
|
+
// Coordinates including border and padding
|
|
43
|
+
pos = getElementPosition('innerDiv');
|
|
44
|
+
is(pos.x, 444, 'x position with offsetParent border');
|
|
45
|
+
is(pos.y, 111, 'y position with offsetParent border');
|
|
46
|
+
|
|
47
|
+
// moved
|
|
48
|
+
var newPos = new MochiKit.Style.Coordinates(500, 200);
|
|
49
|
+
setElementPosition('styleTest', newPos);
|
|
50
|
+
pos = getElementPosition('styleTest');
|
|
51
|
+
is(pos.x, 500, 'updated x position');
|
|
52
|
+
is(pos.y, 200, 'updated y position');
|
|
53
|
+
|
|
54
|
+
// moved with relativeTo
|
|
55
|
+
anotherPos = new MochiKit.Style.Coordinates(100, 100);
|
|
56
|
+
pos = getElementPosition('styleTest', anotherPos);
|
|
57
|
+
is(pos.x, 400, 'updated x position (using relativeTo parameter)');
|
|
58
|
+
is(pos.y, 100, 'updated y position (using relativeTo parameter)');
|
|
59
|
+
|
|
60
|
+
// Coordinates object
|
|
61
|
+
pos = getElementPosition({x: 123, y: 321});
|
|
62
|
+
is(pos.x, 123, 'passthrough x position');
|
|
63
|
+
is(pos.y, 321, 'passthrough y position');
|
|
64
|
+
|
|
65
|
+
// Coordinates object with relativeTo
|
|
66
|
+
pos = getElementPosition({x: 123, y: 321}, {x: 100, y: 50});
|
|
67
|
+
is(pos.x, 23, 'passthrough x position (using relativeTo parameter)');
|
|
68
|
+
is(pos.y, 271, 'passthrough y position (using relativeTo parameter)');
|
|
69
|
+
|
|
70
|
+
pos = getElementPosition('garbage');
|
|
71
|
+
is(typeof(pos), 'undefined',
|
|
72
|
+
'invalid element should return an undefined position');
|
|
73
|
+
|
|
74
|
+
// Only set one coordinate
|
|
75
|
+
setElementPosition('styleTest', {'x': 300});
|
|
76
|
+
pos = getElementPosition('styleTest');
|
|
77
|
+
is(pos.x, 300, 'updated only x position');
|
|
78
|
+
is(pos.y, 200, 'not updated y position');
|
|
79
|
+
|
|
80
|
+
var mc = MochiKit.Color.Color;
|
|
81
|
+
var red = mc.fromString('rgb(255,0,0)');
|
|
82
|
+
var color = null;
|
|
83
|
+
|
|
84
|
+
color = mc.fromString(getStyle('styleTest', 'background-color'));
|
|
85
|
+
is(color.toHexString(), red.toHexString(),
|
|
86
|
+
'test getStyle selector case');
|
|
87
|
+
|
|
88
|
+
color = mc.fromString(getStyle('styleTest', 'backgroundColor'));
|
|
89
|
+
is(color.toHexString(), red.toHexString(),
|
|
90
|
+
'test getStyle camel case');
|
|
91
|
+
|
|
92
|
+
is(getStyle('styleSubTest', 'font-size'), '10px',
|
|
93
|
+
'test computed getStyle selector case');
|
|
94
|
+
|
|
95
|
+
is(getStyle('styleSubTest', 'fontSize'), '10px',
|
|
96
|
+
'test computed getStyle camel case');
|
|
97
|
+
|
|
98
|
+
is(eval(getStyle('styleTest', 'opacity')), 0.5,
|
|
99
|
+
'test getStyle opacity');
|
|
100
|
+
|
|
101
|
+
is(getStyle('styleTest', 'opacity'), 0.5, 'test getOpacity');
|
|
102
|
+
|
|
103
|
+
setStyle('styleTest', {'opacity': 0.2});
|
|
104
|
+
is(getStyle('styleTest', 'opacity'), 0.2, 'test setOpacity');
|
|
105
|
+
|
|
106
|
+
setStyle('styleTest', {'opacity': 0});
|
|
107
|
+
is(getStyle('styleTest', 'opacity'), 0, 'test setOpacity');
|
|
108
|
+
|
|
109
|
+
setStyle('styleTest', {'opacity': 1});
|
|
110
|
+
var t = getStyle('styleTest', 'opacity');
|
|
111
|
+
ok(t > 0.999 && t <= 1, 'test setOpacity');
|
|
112
|
+
|
|
113
|
+
is(getStyle('floatTest', 'float'), "left", 'getStyle of float');
|
|
114
|
+
is(getStyle('floatTest', 'cssFloat'), "left", 'getStyle of cssFloat');
|
|
115
|
+
is(getStyle('floatTest', 'styleFloat'), "left", 'getStyle of styleFloat');
|
|
116
|
+
is(getStyle('styleTest', 'float'), "none", 'getStyle of float when unset');
|
|
117
|
+
|
|
118
|
+
setStyle('floatTest', { "float": "right" });
|
|
119
|
+
is(getStyle('floatTest', 'float'), "right", 'setStyle of CSS float');
|
|
120
|
+
is(getStyle('floatTest', 'cssFloat'), "right", 'setStyle of CSS cssFloat');
|
|
121
|
+
is(getStyle('floatTest', 'styleFloat'), "right", 'setStyle of CSS styleFloat');
|
|
122
|
+
|
|
123
|
+
var dims = getElementDimensions('styleTest');
|
|
124
|
+
is(dims.w, 166, 'getElementDimensions w ok');
|
|
125
|
+
is(dims.h, 124, 'getElementDimensions h ok');
|
|
126
|
+
|
|
127
|
+
dims = getElementDimensions('styleTest', true);
|
|
128
|
+
is(dims.w, 100, 'getElementDimensions content w ok');
|
|
129
|
+
is(dims.h, 80, 'getElementDimensions content h ok');
|
|
130
|
+
|
|
131
|
+
setElementDimensions('styleTest', {'w': 200, 'h': 150});
|
|
132
|
+
dims = getElementDimensions('styleTest', true);
|
|
133
|
+
is(dims.w, 200, 'setElementDimensions w ok');
|
|
134
|
+
is(dims.h, 150, 'setElementDimensions h ok');
|
|
135
|
+
|
|
136
|
+
setElementDimensions('styleTest', {'w': 150});
|
|
137
|
+
dims = getElementDimensions('styleTest', true);
|
|
138
|
+
is(dims.w, 150, 'setElementDimensions only w ok');
|
|
139
|
+
is(dims.h, 150, 'setElementDimensions h not updated ok');
|
|
140
|
+
|
|
141
|
+
hideElement('styleTest');
|
|
142
|
+
dims = getElementDimensions('styleTest', true);
|
|
143
|
+
is(dims.w, 150, 'getElementDimensions w ok when display none');
|
|
144
|
+
is(dims.h, 150, 'getElementDimensions h ok when display none');
|
|
145
|
+
|
|
146
|
+
dims = getElementDimensions('hideTest', true);
|
|
147
|
+
is(dims.w, 100, 'getElementDimensions w ok when CSS display none');
|
|
148
|
+
is(dims.h, 100, 'getElementDimensions h ok when CSS display none');
|
|
149
|
+
|
|
150
|
+
/* TODO: can we create a work-around for this case?
|
|
151
|
+
dims = getElementDimensions('innerHideTest', true);
|
|
152
|
+
is(dims.w, 10, 'getElementDimensions w ok when parent CSS display none');
|
|
153
|
+
is(dims.h, 10, 'getElementDimensions h ok when parent CSS display none');
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
var elem = DIV();
|
|
157
|
+
appendChildNodes('styleTest', elem);
|
|
158
|
+
var before = elem.style.display;
|
|
159
|
+
getElementDimensions(elem);
|
|
160
|
+
var after = elem.style.display;
|
|
161
|
+
is(after, before, 'getElementDimensions modified element display');
|
|
162
|
+
|
|
163
|
+
dims = getViewportDimensions();
|
|
164
|
+
is(dims.w > 0, true, 'test getViewportDimensions w');
|
|
165
|
+
is(dims.h > 0, true, 'test getViewportDimensions h');
|
|
166
|
+
|
|
167
|
+
pos = getViewportPosition();
|
|
168
|
+
is(pos.x, 0, 'test getViewportPosition x');
|
|
169
|
+
is(pos.y, 0, 'test getViewportPosition y');
|
|
170
|
+
|
|
171
|
+
dims = getElementDimensions('testCell1', true);
|
|
172
|
+
is(dims.w, 80, 'default left table cell content w ok');
|
|
173
|
+
is(dims.h, 30, 'default left table cell content h ok');
|
|
174
|
+
dims = getElementDimensions('testCell2', true);
|
|
175
|
+
is(dims.w, 80, 'default middle table cell content w ok');
|
|
176
|
+
is(dims.h, 30, 'default middle table cell content h ok');
|
|
177
|
+
dims = getElementDimensions('testCell3', true);
|
|
178
|
+
is(dims.w, 80, 'default right table cell content w ok');
|
|
179
|
+
is(dims.h, 30, 'default right table cell content h ok');
|
|
180
|
+
|
|
181
|
+
setStyle('testTable', {'borderCollapse': 'collapse'});
|
|
182
|
+
dims = getElementDimensions('testCell1', true);
|
|
183
|
+
is(dims.w, 80, 'collapsed left table cell content w ok');
|
|
184
|
+
is(dims.h, 30, 'collapsed left table cell content h ok');
|
|
185
|
+
dims = getElementDimensions('testCell2', true);
|
|
186
|
+
is(dims.w, 80, 'collapsed middle table cell content w ok');
|
|
187
|
+
is(dims.h, 30, 'collapsed middle table cell content h ok');
|
|
188
|
+
dims = getElementDimensions('testCell3', true);
|
|
189
|
+
is(dims.w, 80, 'collapsed right table cell content w ok');
|
|
190
|
+
is(dims.h, 30, 'collapsed right table cell content h ok');
|
|
191
|
+
|
|
192
|
+
hideElement('testTable');
|
|
193
|
+
|
|
194
|
+
var overflow = makeClipping('styleTest');
|
|
195
|
+
is(getStyle('styleTest', 'overflow-x'), 'hidden', 'make clipping on overflow-x');
|
|
196
|
+
is(getStyle('styleTest', 'overflow-y'), 'hidden', 'make clipping on overflow-y');
|
|
197
|
+
|
|
198
|
+
undoClipping('styleTest', overflow);
|
|
199
|
+
is(getStyle('styleTest', 'overflow-x'), 'visible', 'undo clipping on overflow-x');
|
|
200
|
+
is(getStyle('styleTest', 'overflow-y'), 'hidden', 'undo clipping on overflow-y');
|
|
201
|
+
|
|
202
|
+
ok( true, "test suite finished!");
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
} catch (err) {
|
|
206
|
+
|
|
207
|
+
var s = "test suite failure!\n";
|
|
208
|
+
var o = {};
|
|
209
|
+
var k = null;
|
|
210
|
+
for (k in err) {
|
|
211
|
+
// ensure unique keys?!
|
|
212
|
+
if (!o[k]) {
|
|
213
|
+
s += k + ": " + err[k] + "\n";
|
|
214
|
+
o[k] = err[k];
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
ok ( false, s );
|
|
218
|
+
|
|
219
|
+
}
|
|
220
|
+
</script>
|
|
221
|
+
</pre>
|
|
222
|
+
</body>
|
|
223
|
+
</html>
|