closure 1.1.692
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/.yardopts +3 -0
- data/LICENSE +202 -0
- data/README.md +26 -0
- data/beanshell/LICENSE +12 -0
- data/beanshell/bsh-core-2.0b4.jar +0 -0
- data/closure-compiler/COPYING +202 -0
- data/closure-compiler/README +278 -0
- data/closure-compiler/compiler.jar +0 -0
- data/closure-library/AUTHORS +12 -0
- data/closure-library/LICENSE +176 -0
- data/closure-library/README +6 -0
- data/closure-library/all_tests.html +113 -0
- data/closure-library/alltests.js +16 -0
- data/closure-library/closure/bin/build/closurebuilder.py +257 -0
- data/closure-library/closure/bin/build/depstree.py +186 -0
- data/closure-library/closure/bin/build/depstree_test.py +127 -0
- data/closure-library/closure/bin/build/depswriter.py +197 -0
- data/closure-library/closure/bin/build/jscompiler.py +69 -0
- data/closure-library/closure/bin/build/source.py +86 -0
- data/closure-library/closure/bin/build/source_test.py +57 -0
- data/closure-library/closure/bin/build/treescan.py +78 -0
- data/closure-library/closure/bin/calcdeps.py +570 -0
- data/closure-library/closure/bin/scopify.py +211 -0
- data/closure-library/closure/css/inlay/g-base.css +82 -0
- data/closure-library/closure/css/inlay/g-fixed.css +158 -0
- data/closure-library/closure/css/inlay/g-ratio.css +253 -0
- data/closure-library/closure/goog/array/array.js +1300 -0
- data/closure-library/closure/goog/array/array_test.html +1524 -0
- data/closure-library/closure/goog/asserts/asserts.js +277 -0
- data/closure-library/closure/goog/asserts/asserts_test.html +163 -0
- data/closure-library/closure/goog/async/conditionaldelay.js +238 -0
- data/closure-library/closure/goog/async/conditionaldelay_test.html +227 -0
- data/closure-library/closure/goog/async/delay.js +174 -0
- data/closure-library/closure/goog/async/delay_test.html +148 -0
- data/closure-library/closure/goog/async/throttle.js +189 -0
- data/closure-library/closure/goog/async/throttle_test.html +102 -0
- data/closure-library/closure/goog/base.js +1471 -0
- data/closure-library/closure/goog/base_test.html +1166 -0
- data/closure-library/closure/goog/bootstrap/webworkers.js +37 -0
- data/closure-library/closure/goog/color/alpha.js +436 -0
- data/closure-library/closure/goog/color/alpha_test.html +234 -0
- data/closure-library/closure/goog/color/color.js +757 -0
- data/closure-library/closure/goog/color/color_test.html +645 -0
- data/closure-library/closure/goog/color/names.js +176 -0
- data/closure-library/closure/goog/crypt/arc4.js +141 -0
- data/closure-library/closure/goog/crypt/arc4_test.html +42 -0
- data/closure-library/closure/goog/crypt/base64.js +267 -0
- data/closure-library/closure/goog/crypt/base64_test.html +106 -0
- data/closure-library/closure/goog/crypt/basen.js +242 -0
- data/closure-library/closure/goog/crypt/basen_test.html +167 -0
- data/closure-library/closure/goog/crypt/crypt.js +103 -0
- data/closure-library/closure/goog/crypt/crypt_test.html +68 -0
- data/closure-library/closure/goog/crypt/hash32.js +184 -0
- data/closure-library/closure/goog/crypt/hash32_test.html +287 -0
- data/closure-library/closure/goog/crypt/sha1.js +238 -0
- data/closure-library/closure/goog/crypt/sha1_test.html +47 -0
- data/closure-library/closure/goog/css/autocomplete.css +43 -0
- data/closure-library/closure/goog/css/bubble.css +84 -0
- data/closure-library/closure/goog/css/button.css +38 -0
- data/closure-library/closure/goog/css/charpicker.css +201 -0
- data/closure-library/closure/goog/css/checkbox.css +38 -0
- data/closure-library/closure/goog/css/colormenubutton.css +25 -0
- data/closure-library/closure/goog/css/colorpalette.css +54 -0
- data/closure-library/closure/goog/css/colorpicker-simplegrid.css +50 -0
- data/closure-library/closure/goog/css/combobox.css +57 -0
- data/closure-library/closure/goog/css/common.css +41 -0
- data/closure-library/closure/goog/css/css3button.css +77 -0
- data/closure-library/closure/goog/css/css3menubutton.css +23 -0
- data/closure-library/closure/goog/css/custombutton.css +164 -0
- data/closure-library/closure/goog/css/datepicker.css +148 -0
- data/closure-library/closure/goog/css/dialog.css +72 -0
- data/closure-library/closure/goog/css/dimensionpicker.css +47 -0
- data/closure-library/closure/goog/css/dragdropdetector.css +48 -0
- data/closure-library/closure/goog/css/editor/bubble.css +73 -0
- data/closure-library/closure/goog/css/editor/dialog.css +66 -0
- data/closure-library/closure/goog/css/editor/linkdialog.css +36 -0
- data/closure-library/closure/goog/css/editortoolbar.css +225 -0
- data/closure-library/closure/goog/css/filteredmenu.css +30 -0
- data/closure-library/closure/goog/css/filterobservingmenuitem.css +25 -0
- data/closure-library/closure/goog/css/flatbutton.css +65 -0
- data/closure-library/closure/goog/css/flatmenubutton.css +63 -0
- data/closure-library/closure/goog/css/hovercard.css +51 -0
- data/closure-library/closure/goog/css/hsvapalette.css +231 -0
- data/closure-library/closure/goog/css/hsvpalette.css +179 -0
- data/closure-library/closure/goog/css/imagelessbutton.css +160 -0
- data/closure-library/closure/goog/css/imagelessmenubutton.css +23 -0
- data/closure-library/closure/goog/css/inputdatepicker.css +12 -0
- data/closure-library/closure/goog/css/linkbutton.css +26 -0
- data/closure-library/closure/goog/css/menu.css +27 -0
- data/closure-library/closure/goog/css/menubutton.css +169 -0
- data/closure-library/closure/goog/css/menuitem.css +96 -0
- data/closure-library/closure/goog/css/menuseparator.css +19 -0
- data/closure-library/closure/goog/css/multitestrunner.css +121 -0
- data/closure-library/closure/goog/css/offline.css +147 -0
- data/closure-library/closure/goog/css/palette.css +36 -0
- data/closure-library/closure/goog/css/popupdatepicker.css +17 -0
- data/closure-library/closure/goog/css/roundedpanel.css +29 -0
- data/closure-library/closure/goog/css/roundedtab.css +158 -0
- data/closure-library/closure/goog/css/submenu.css +28 -0
- data/closure-library/closure/goog/css/tab.css +91 -0
- data/closure-library/closure/goog/css/tabbar.css +52 -0
- data/closure-library/closure/goog/css/tablesorter.css +14 -0
- data/closure-library/closure/goog/css/toolbar.css +400 -0
- data/closure-library/closure/goog/css/tooltip.css +14 -0
- data/closure-library/closure/goog/css/tree.css +147 -0
- data/closure-library/closure/goog/css/tristatemenuitem.css +43 -0
- data/closure-library/closure/goog/cssom/cssom.js +447 -0
- data/closure-library/closure/goog/cssom/cssom_test.html +343 -0
- data/closure-library/closure/goog/cssom/cssom_test_import_1.css +11 -0
- data/closure-library/closure/goog/cssom/cssom_test_import_2.css +10 -0
- data/closure-library/closure/goog/cssom/cssom_test_link_1.css +10 -0
- data/closure-library/closure/goog/cssom/iframe/style.js +1020 -0
- data/closure-library/closure/goog/cssom/iframe/style_test.html +391 -0
- data/closure-library/closure/goog/cssom/iframe/style_test_import.css +10 -0
- data/closure-library/closure/goog/datasource/datamanager.js +566 -0
- data/closure-library/closure/goog/datasource/datasource.js +646 -0
- data/closure-library/closure/goog/datasource/datasource_test.html +265 -0
- data/closure-library/closure/goog/datasource/expr.js +544 -0
- data/closure-library/closure/goog/datasource/expr_test.html +97 -0
- data/closure-library/closure/goog/datasource/fastdatanode.js +792 -0
- data/closure-library/closure/goog/datasource/fastdatanode_test.html +254 -0
- data/closure-library/closure/goog/datasource/jsdatasource.js +460 -0
- data/closure-library/closure/goog/datasource/jsondatasource.js +146 -0
- data/closure-library/closure/goog/datasource/jsxmlhttpdatasource.js +191 -0
- data/closure-library/closure/goog/datasource/jsxmlhttpdatasource_test.html +94 -0
- data/closure-library/closure/goog/datasource/xmldatasource.js +407 -0
- data/closure-library/closure/goog/date/date.js +1642 -0
- data/closure-library/closure/goog/date/date_test.html +1293 -0
- data/closure-library/closure/goog/date/datelike.js +27 -0
- data/closure-library/closure/goog/date/daterange.js +398 -0
- data/closure-library/closure/goog/date/daterange_test.html +213 -0
- data/closure-library/closure/goog/date/relative.js +425 -0
- data/closure-library/closure/goog/date/relative_test.html +124 -0
- data/closure-library/closure/goog/date/utcdatetime.js +178 -0
- data/closure-library/closure/goog/date/utcdatetime_test.html +119 -0
- data/closure-library/closure/goog/debug/console.js +138 -0
- data/closure-library/closure/goog/debug/debug.js +452 -0
- data/closure-library/closure/goog/debug/debug_test.html +32 -0
- data/closure-library/closure/goog/debug/debugwindow.js +582 -0
- data/closure-library/closure/goog/debug/devcss/devcss.js +435 -0
- data/closure-library/closure/goog/debug/devcss/devcss_test.html +365 -0
- data/closure-library/closure/goog/debug/devcss/devcssrunner.js +26 -0
- data/closure-library/closure/goog/debug/divconsole.js +141 -0
- data/closure-library/closure/goog/debug/enhanceerror_test.html +138 -0
- data/closure-library/closure/goog/debug/entrypointregistry.js +111 -0
- data/closure-library/closure/goog/debug/entrypointregistry_test.html +63 -0
- data/closure-library/closure/goog/debug/error.js +47 -0
- data/closure-library/closure/goog/debug/error_test.html +85 -0
- data/closure-library/closure/goog/debug/errorhandler.js +234 -0
- data/closure-library/closure/goog/debug/errorhandler_async_test.html +112 -0
- data/closure-library/closure/goog/debug/errorhandler_test.html +186 -0
- data/closure-library/closure/goog/debug/errorhandlerweakdep.js +38 -0
- data/closure-library/closure/goog/debug/errorreporter.js +324 -0
- data/closure-library/closure/goog/debug/errorreporter_test.html +289 -0
- data/closure-library/closure/goog/debug/fancywindow.js +265 -0
- data/closure-library/closure/goog/debug/formatter.js +314 -0
- data/closure-library/closure/goog/debug/gcdiagnostics.js +143 -0
- data/closure-library/closure/goog/debug/logbuffer.js +147 -0
- data/closure-library/closure/goog/debug/logbuffer_test.html +105 -0
- data/closure-library/closure/goog/debug/logger.js +809 -0
- data/closure-library/closure/goog/debug/logger_test.html +208 -0
- data/closure-library/closure/goog/debug/logrecord.js +271 -0
- data/closure-library/closure/goog/debug/reflect.js +159 -0
- data/closure-library/closure/goog/debug/reflect_test.html +81 -0
- data/closure-library/closure/goog/debug/relativetimeprovider.js +83 -0
- data/closure-library/closure/goog/debug/tracer.js +750 -0
- data/closure-library/closure/goog/debug/tracer_test.html +57 -0
- data/closure-library/closure/goog/demos/advancedtooltip.html +78 -0
- data/closure-library/closure/goog/demos/animationqueue.html +149 -0
- data/closure-library/closure/goog/demos/autocomplete-basic.html +56 -0
- data/closure-library/closure/goog/demos/autocompleteremote.html +40 -0
- data/closure-library/closure/goog/demos/autocompleteremotedata.js +18 -0
- data/closure-library/closure/goog/demos/autocompleterichremote.html +137 -0
- data/closure-library/closure/goog/demos/autocompleterichremotedata.js +33 -0
- data/closure-library/closure/goog/demos/bidiinput.html +72 -0
- data/closure-library/closure/goog/demos/bubble.html +250 -0
- data/closure-library/closure/goog/demos/button.html +395 -0
- data/closure-library/closure/goog/demos/charcounter.html +57 -0
- data/closure-library/closure/goog/demos/charpicker.html +64 -0
- data/closure-library/closure/goog/demos/checkbox.html +122 -0
- data/closure-library/closure/goog/demos/color-contrast.html +60 -0
- data/closure-library/closure/goog/demos/colormenubutton.html +213 -0
- data/closure-library/closure/goog/demos/colorpicker.html +43 -0
- data/closure-library/closure/goog/demos/combobox.html +125 -0
- data/closure-library/closure/goog/demos/container.html +670 -0
- data/closure-library/closure/goog/demos/control.html +477 -0
- data/closure-library/closure/goog/demos/css/demo.css +75 -0
- data/closure-library/closure/goog/demos/css/emojipicker.css +36 -0
- data/closure-library/closure/goog/demos/css/emojisprite.css +92 -0
- data/closure-library/closure/goog/demos/css3button.html +166 -0
- data/closure-library/closure/goog/demos/css3menubutton.html +285 -0
- data/closure-library/closure/goog/demos/cssspriteanimation.html +80 -0
- data/closure-library/closure/goog/demos/datepicker.html +183 -0
- data/closure-library/closure/goog/demos/debug.html +119 -0
- data/closure-library/closure/goog/demos/depsgraph.html +221 -0
- data/closure-library/closure/goog/demos/dialog.html +156 -0
- data/closure-library/closure/goog/demos/dimensionpicker.html +108 -0
- data/closure-library/closure/goog/demos/dimensionpicker_rtl.html +123 -0
- data/closure-library/closure/goog/demos/dom_selection.html +88 -0
- data/closure-library/closure/goog/demos/drag.html +191 -0
- data/closure-library/closure/goog/demos/dragdrop.html +263 -0
- data/closure-library/closure/goog/demos/dragdropdetector.html +46 -0
- data/closure-library/closure/goog/demos/dragdropdetector_target.html +17 -0
- data/closure-library/closure/goog/demos/dragger.html +83 -0
- data/closure-library/closure/goog/demos/draglistgroup.html +261 -0
- data/closure-library/closure/goog/demos/drilldownrow.html +78 -0
- data/closure-library/closure/goog/demos/editor/deps.js +20 -0
- data/closure-library/closure/goog/demos/editor/editor.html +139 -0
- data/closure-library/closure/goog/demos/editor/field_basic.html +74 -0
- data/closure-library/closure/goog/demos/editor/helloworld.html +91 -0
- data/closure-library/closure/goog/demos/editor/helloworld.js +81 -0
- data/closure-library/closure/goog/demos/editor/helloworld_test.html +75 -0
- data/closure-library/closure/goog/demos/editor/helloworlddialog.js +163 -0
- data/closure-library/closure/goog/demos/editor/helloworlddialog_test.html +100 -0
- data/closure-library/closure/goog/demos/editor/helloworlddialogplugin.js +110 -0
- data/closure-library/closure/goog/demos/editor/helloworlddialogplugin_test.html +198 -0
- data/closure-library/closure/goog/demos/editor/seamlessfield.html +106 -0
- data/closure-library/closure/goog/demos/effects.html +142 -0
- data/closure-library/closure/goog/demos/emoji/200.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/201.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/202.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/203.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/204.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/205.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/206.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2BC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2BD.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2BE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2BF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C0.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C1.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C2.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C3.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C4.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C5.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C6.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C7.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C8.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C9.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CA.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CB.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CD.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D0.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D1.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D2.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D3.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D4.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D5.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D6.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D7.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D8.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D9.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DA.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DB.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DD.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E0.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E1.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E2.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E3.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E4.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E5.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E6.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E7.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E8.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E9.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EA.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EB.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2ED.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F0.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F1.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F2.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F3.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F4.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F5.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F6.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F7.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F8.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F9.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FA.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FB.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FD.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/none.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/sprite.png +0 -0
- data/closure-library/closure/goog/demos/emoji/sprite2.png +0 -0
- data/closure-library/closure/goog/demos/emoji/unknown.gif +0 -0
- data/closure-library/closure/goog/demos/event-propagation.html +192 -0
- data/closure-library/closure/goog/demos/events.html +99 -0
- data/closure-library/closure/goog/demos/eventtarget.html +70 -0
- data/closure-library/closure/goog/demos/filedrophandler.html +63 -0
- data/closure-library/closure/goog/demos/filteredmenu.html +118 -0
- data/closure-library/closure/goog/demos/focushandler.html +58 -0
- data/closure-library/closure/goog/demos/gauge.html +158 -0
- data/closure-library/closure/goog/demos/graphics/advancedcoordinates.html +141 -0
- data/closure-library/closure/goog/demos/graphics/advancedcoordinates2.html +130 -0
- data/closure-library/closure/goog/demos/graphics/basicelements.html +264 -0
- data/closure-library/closure/goog/demos/graphics/events.html +113 -0
- data/closure-library/closure/goog/demos/graphics/modifyelements.html +195 -0
- data/closure-library/closure/goog/demos/graphics/subpixel.html +80 -0
- data/closure-library/closure/goog/demos/graphics/tiger.html +105 -0
- data/closure-library/closure/goog/demos/graphics/tigerdata.js +2840 -0
- data/closure-library/closure/goog/demos/history1.html +132 -0
- data/closure-library/closure/goog/demos/history2.html +100 -0
- data/closure-library/closure/goog/demos/history3.html +106 -0
- data/closure-library/closure/goog/demos/history3js.html +36 -0
- data/closure-library/closure/goog/demos/history_blank.html +25 -0
- data/closure-library/closure/goog/demos/hovercard.html +177 -0
- data/closure-library/closure/goog/demos/hsvapalette.html +55 -0
- data/closure-library/closure/goog/demos/hsvpalette.html +56 -0
- data/closure-library/closure/goog/demos/html5history.html +87 -0
- data/closure-library/closure/goog/demos/imagelessbutton.html +221 -0
- data/closure-library/closure/goog/demos/imagelessmenubutton.html +285 -0
- data/closure-library/closure/goog/demos/imagelessroundedcorner.html +231 -0
- data/closure-library/closure/goog/demos/index.html +19 -0
- data/closure-library/closure/goog/demos/index_nav.html +253 -0
- data/closure-library/closure/goog/demos/index_splash.html +22 -0
- data/closure-library/closure/goog/demos/inline_block_quirks.html +125 -0
- data/closure-library/closure/goog/demos/inline_block_standards.html +126 -0
- data/closure-library/closure/goog/demos/inputdatepicker.html +60 -0
- data/closure-library/closure/goog/demos/inputhandler.html +72 -0
- data/closure-library/closure/goog/demos/jsonprettyprinter.html +80 -0
- data/closure-library/closure/goog/demos/keyboardshortcuts.html +112 -0
- data/closure-library/closure/goog/demos/keyhandler.html +127 -0
- data/closure-library/closure/goog/demos/labelinput.html +42 -0
- data/closure-library/closure/goog/demos/menu.html +220 -0
- data/closure-library/closure/goog/demos/menubutton.html +318 -0
- data/closure-library/closure/goog/demos/mousewheelhandler.html +109 -0
- data/closure-library/closure/goog/demos/offline.html +268 -0
- data/closure-library/closure/goog/demos/onlinehandler.html +77 -0
- data/closure-library/closure/goog/demos/palette.html +302 -0
- data/closure-library/closure/goog/demos/pastehandler.html +54 -0
- data/closure-library/closure/goog/demos/plaintextspellchecker.html +106 -0
- data/closure-library/closure/goog/demos/popup.html +200 -0
- data/closure-library/closure/goog/demos/popupcolorpicker.html +49 -0
- data/closure-library/closure/goog/demos/popupdatepicker.html +53 -0
- data/closure-library/closure/goog/demos/popupemojipicker.html +407 -0
- data/closure-library/closure/goog/demos/popupmenu.html +89 -0
- data/closure-library/closure/goog/demos/progressbar.html +97 -0
- data/closure-library/closure/goog/demos/prompt.html +92 -0
- data/closure-library/closure/goog/demos/quadtree.html +107 -0
- data/closure-library/closure/goog/demos/ratings.html +120 -0
- data/closure-library/closure/goog/demos/richtextspellchecker.html +92 -0
- data/closure-library/closure/goog/demos/roundedpanel.html +139 -0
- data/closure-library/closure/goog/demos/samplecomponent.html +75 -0
- data/closure-library/closure/goog/demos/samplecomponent.js +206 -0
- data/closure-library/closure/goog/demos/scrollfloater.html +117 -0
- data/closure-library/closure/goog/demos/select.html +324 -0
- data/closure-library/closure/goog/demos/selectionmenubutton.html +186 -0
- data/closure-library/closure/goog/demos/serverchart.html +122 -0
- data/closure-library/closure/goog/demos/silverlightclipboardbutton.html +71 -0
- data/closure-library/closure/goog/demos/slider.html +110 -0
- data/closure-library/closure/goog/demos/splitbehavior.html +164 -0
- data/closure-library/closure/goog/demos/splitpane.html +243 -0
- data/closure-library/closure/goog/demos/stopevent.html +171 -0
- data/closure-library/closure/goog/demos/submenus.html +130 -0
- data/closure-library/closure/goog/demos/submenus2.html +150 -0
- data/closure-library/closure/goog/demos/tabbar.html +289 -0
- data/closure-library/closure/goog/demos/tablesorter.html +116 -0
- data/closure-library/closure/goog/demos/tabpane.html +302 -0
- data/closure-library/closure/goog/demos/textarea.html +128 -0
- data/closure-library/closure/goog/demos/timers.html +291 -0
- data/closure-library/closure/goog/demos/toolbar.html +703 -0
- data/closure-library/closure/goog/demos/tooltip.html +91 -0
- data/closure-library/closure/goog/demos/tracer.html +92 -0
- data/closure-library/closure/goog/demos/tree/demo.html +126 -0
- data/closure-library/closure/goog/demos/tree/testdata.js +260 -0
- data/closure-library/closure/goog/demos/tweakui.html +121 -0
- data/closure-library/closure/goog/demos/twothumbslider.html +121 -0
- data/closure-library/closure/goog/demos/useragent.html +173 -0
- data/closure-library/closure/goog/demos/viewportsizemonitor.html +71 -0
- data/closure-library/closure/goog/demos/xpc/blank.html +7 -0
- data/closure-library/closure/goog/demos/xpc/index.html +89 -0
- data/closure-library/closure/goog/demos/xpc/inner.html +58 -0
- data/closure-library/closure/goog/demos/xpc/minimal/blank.html +7 -0
- data/closure-library/closure/goog/demos/xpc/minimal/index.html +105 -0
- data/closure-library/closure/goog/demos/xpc/minimal/inner.html +75 -0
- data/closure-library/closure/goog/demos/xpc/minimal/relay.html +7 -0
- data/closure-library/closure/goog/demos/xpc/relay.html +7 -0
- data/closure-library/closure/goog/demos/xpc/xpcdemo.js +304 -0
- data/closure-library/closure/goog/demos/zippy.html +127 -0
- data/closure-library/closure/goog/deps.js +672 -0
- data/closure-library/closure/goog/disposable/disposable.js +167 -0
- data/closure-library/closure/goog/disposable/disposable_test.html +202 -0
- data/closure-library/closure/goog/dom/a11y.js +438 -0
- data/closure-library/closure/goog/dom/a11y_test.html +86 -0
- data/closure-library/closure/goog/dom/abstractmultirange.js +77 -0
- data/closure-library/closure/goog/dom/abstractrange.js +514 -0
- data/closure-library/closure/goog/dom/abstractrange_test.html +73 -0
- data/closure-library/closure/goog/dom/annotate.js +352 -0
- data/closure-library/closure/goog/dom/annotate_test.html +187 -0
- data/closure-library/closure/goog/dom/browserfeature.js +50 -0
- data/closure-library/closure/goog/dom/browserrange/abstractrange.js +316 -0
- data/closure-library/closure/goog/dom/browserrange/browserrange.js +149 -0
- data/closure-library/closure/goog/dom/browserrange/browserrange_test.html +562 -0
- data/closure-library/closure/goog/dom/browserrange/geckorange.js +82 -0
- data/closure-library/closure/goog/dom/browserrange/ierange.js +970 -0
- data/closure-library/closure/goog/dom/browserrange/operarange.js +83 -0
- data/closure-library/closure/goog/dom/browserrange/w3crange.js +364 -0
- data/closure-library/closure/goog/dom/browserrange/webkitrange.js +112 -0
- data/closure-library/closure/goog/dom/classes.js +233 -0
- data/closure-library/closure/goog/dom/classes_test.html +228 -0
- data/closure-library/closure/goog/dom/controlrange.js +511 -0
- data/closure-library/closure/goog/dom/controlrange_test.html +246 -0
- data/closure-library/closure/goog/dom/dataset.js +90 -0
- data/closure-library/closure/goog/dom/dataset_test.html +104 -0
- data/closure-library/closure/goog/dom/dom.js +2424 -0
- data/closure-library/closure/goog/dom/dom_quirks_test.html +104 -0
- data/closure-library/closure/goog/dom/dom_test.html +103 -0
- data/closure-library/closure/goog/dom/dom_test.js +1129 -0
- data/closure-library/closure/goog/dom/fontsizemonitor.js +159 -0
- data/closure-library/closure/goog/dom/fontsizemonitor_test.html +283 -0
- data/closure-library/closure/goog/dom/forms.js +403 -0
- data/closure-library/closure/goog/dom/forms_test.html +483 -0
- data/closure-library/closure/goog/dom/iframe.js +128 -0
- data/closure-library/closure/goog/dom/iframe_test.html +87 -0
- data/closure-library/closure/goog/dom/iter.js +127 -0
- data/closure-library/closure/goog/dom/iter_test.html +97 -0
- data/closure-library/closure/goog/dom/multirange.js +519 -0
- data/closure-library/closure/goog/dom/multirange_test.html +67 -0
- data/closure-library/closure/goog/dom/nodeiterator.js +85 -0
- data/closure-library/closure/goog/dom/nodeiterator_test.html +49 -0
- data/closure-library/closure/goog/dom/nodeoffset.js +111 -0
- data/closure-library/closure/goog/dom/nodeoffset_test.html +88 -0
- data/closure-library/closure/goog/dom/pattern/abstractpattern.js +60 -0
- data/closure-library/closure/goog/dom/pattern/allchildren.js +73 -0
- data/closure-library/closure/goog/dom/pattern/callback/callback.js +82 -0
- data/closure-library/closure/goog/dom/pattern/callback/counter.js +72 -0
- data/closure-library/closure/goog/dom/pattern/callback/test.js +77 -0
- data/closure-library/closure/goog/dom/pattern/childmatches.js +152 -0
- data/closure-library/closure/goog/dom/pattern/endtag.js +53 -0
- data/closure-library/closure/goog/dom/pattern/fulltag.js +92 -0
- data/closure-library/closure/goog/dom/pattern/matcher.js +150 -0
- data/closure-library/closure/goog/dom/pattern/matcher_test.html +204 -0
- data/closure-library/closure/goog/dom/pattern/nodetype.js +57 -0
- data/closure-library/closure/goog/dom/pattern/pattern.js +93 -0
- data/closure-library/closure/goog/dom/pattern/pattern_test.html +614 -0
- data/closure-library/closure/goog/dom/pattern/repeat.js +188 -0
- data/closure-library/closure/goog/dom/pattern/sequence.js +139 -0
- data/closure-library/closure/goog/dom/pattern/starttag.js +53 -0
- data/closure-library/closure/goog/dom/pattern/tag.js +149 -0
- data/closure-library/closure/goog/dom/pattern/text.js +69 -0
- data/closure-library/closure/goog/dom/range.js +220 -0
- data/closure-library/closure/goog/dom/range_test.html +702 -0
- data/closure-library/closure/goog/dom/rangeendpoint.js +32 -0
- data/closure-library/closure/goog/dom/savedcaretrange.js +203 -0
- data/closure-library/closure/goog/dom/savedcaretrange_test.html +235 -0
- data/closure-library/closure/goog/dom/savedrange.js +74 -0
- data/closure-library/closure/goog/dom/savedrange_test.html +61 -0
- data/closure-library/closure/goog/dom/selection.js +470 -0
- data/closure-library/closure/goog/dom/selection_test.html +329 -0
- data/closure-library/closure/goog/dom/tagiterator.js +365 -0
- data/closure-library/closure/goog/dom/tagiterator_test.html +589 -0
- data/closure-library/closure/goog/dom/tagname.js +121 -0
- data/closure-library/closure/goog/dom/tagname_test.html +37 -0
- data/closure-library/closure/goog/dom/textrange.js +611 -0
- data/closure-library/closure/goog/dom/textrange_test.html +127 -0
- data/closure-library/closure/goog/dom/textrangeiterator.js +246 -0
- data/closure-library/closure/goog/dom/textrangeiterator_test.html +142 -0
- data/closure-library/closure/goog/dom/viewportsizemonitor.js +220 -0
- data/closure-library/closure/goog/dom/viewportsizemonitor_test.html +166 -0
- data/closure-library/closure/goog/dom/xml.js +187 -0
- data/closure-library/closure/goog/dom/xml_test.html +77 -0
- data/closure-library/closure/goog/editor/browserfeature.js +251 -0
- data/closure-library/closure/goog/editor/browserfeature_test.html +124 -0
- data/closure-library/closure/goog/editor/clicktoeditwrapper.js +438 -0
- data/closure-library/closure/goog/editor/clicktoeditwrapper_test.html +137 -0
- data/closure-library/closure/goog/editor/command.js +74 -0
- data/closure-library/closure/goog/editor/defines.js +34 -0
- data/closure-library/closure/goog/editor/field.js +2594 -0
- data/closure-library/closure/goog/editor/field_test.html +1000 -0
- data/closure-library/closure/goog/editor/focus.js +32 -0
- data/closure-library/closure/goog/editor/focus_test.html +66 -0
- data/closure-library/closure/goog/editor/icontent.js +296 -0
- data/closure-library/closure/goog/editor/icontent_test.html +209 -0
- data/closure-library/closure/goog/editor/link.js +279 -0
- data/closure-library/closure/goog/editor/link_test.html +234 -0
- data/closure-library/closure/goog/editor/node.js +435 -0
- data/closure-library/closure/goog/editor/node_test.html +590 -0
- data/closure-library/closure/goog/editor/plugin.js +444 -0
- data/closure-library/closure/goog/editor/plugin_test.html +187 -0
- data/closure-library/closure/goog/editor/plugins/abstractbubbleplugin.js +535 -0
- data/closure-library/closure/goog/editor/plugins/abstractbubbleplugin_test.html +227 -0
- data/closure-library/closure/goog/editor/plugins/abstractdialogplugin.js +336 -0
- data/closure-library/closure/goog/editor/plugins/abstractdialogplugin_test.html +399 -0
- data/closure-library/closure/goog/editor/plugins/abstracttabhandler.js +78 -0
- data/closure-library/closure/goog/editor/plugins/abstracttabhandler_test.html +91 -0
- data/closure-library/closure/goog/editor/plugins/basictextformatter.js +1740 -0
- data/closure-library/closure/goog/editor/plugins/basictextformatter_test.html +1171 -0
- data/closure-library/closure/goog/editor/plugins/blockquote.js +422 -0
- data/closure-library/closure/goog/editor/plugins/blockquote_test.html +149 -0
- data/closure-library/closure/goog/editor/plugins/emoticons.js +83 -0
- data/closure-library/closure/goog/editor/plugins/emoticons_test.html +67 -0
- data/closure-library/closure/goog/editor/plugins/enterhandler.js +730 -0
- data/closure-library/closure/goog/editor/plugins/enterhandler_test.html +739 -0
- data/closure-library/closure/goog/editor/plugins/headerformatter.js +95 -0
- data/closure-library/closure/goog/editor/plugins/headerformatter_test.html +100 -0
- data/closure-library/closure/goog/editor/plugins/linkbubble.js +458 -0
- data/closure-library/closure/goog/editor/plugins/linkbubble_test.html +309 -0
- data/closure-library/closure/goog/editor/plugins/linkdialogplugin.js +222 -0
- data/closure-library/closure/goog/editor/plugins/linkdialogplugin_test.html +370 -0
- data/closure-library/closure/goog/editor/plugins/listtabhandler.js +66 -0
- data/closure-library/closure/goog/editor/plugins/listtabhandler_test.html +177 -0
- data/closure-library/closure/goog/editor/plugins/loremipsum.js +186 -0
- data/closure-library/closure/goog/editor/plugins/loremipsum_test.html +169 -0
- data/closure-library/closure/goog/editor/plugins/removeformatting.js +772 -0
- data/closure-library/closure/goog/editor/plugins/removeformatting_test.html +920 -0
- data/closure-library/closure/goog/editor/plugins/spacestabhandler.js +93 -0
- data/closure-library/closure/goog/editor/plugins/spacestabhandler_test.html +186 -0
- data/closure-library/closure/goog/editor/plugins/tableeditor.js +496 -0
- data/closure-library/closure/goog/editor/plugins/tableeditor_test.html +299 -0
- data/closure-library/closure/goog/editor/plugins/tagonenterhandler.js +741 -0
- data/closure-library/closure/goog/editor/plugins/tagonenterhandler_test.html +481 -0
- data/closure-library/closure/goog/editor/plugins/undoredo.js +1014 -0
- data/closure-library/closure/goog/editor/plugins/undoredo_test.html +525 -0
- data/closure-library/closure/goog/editor/plugins/undoredomanager.js +337 -0
- data/closure-library/closure/goog/editor/plugins/undoredomanager_test.html +394 -0
- data/closure-library/closure/goog/editor/plugins/undoredostate.js +84 -0
- data/closure-library/closure/goog/editor/plugins/undoredostate_test.html +44 -0
- data/closure-library/closure/goog/editor/range.js +602 -0
- data/closure-library/closure/goog/editor/range_test.html +880 -0
- data/closure-library/closure/goog/editor/seamlessfield.js +720 -0
- data/closure-library/closure/goog/editor/seamlessfield_quirks_test.html +30 -0
- data/closure-library/closure/goog/editor/seamlessfield_test.html +33 -0
- data/closure-library/closure/goog/editor/seamlessfield_test.js +392 -0
- data/closure-library/closure/goog/editor/style.js +222 -0
- data/closure-library/closure/goog/editor/style_test.html +177 -0
- data/closure-library/closure/goog/editor/table.js +566 -0
- data/closure-library/closure/goog/editor/table_test.html +522 -0
- data/closure-library/closure/goog/events/actioneventwrapper.js +131 -0
- data/closure-library/closure/goog/events/actioneventwrapper_test.html +176 -0
- data/closure-library/closure/goog/events/actionhandler.js +189 -0
- data/closure-library/closure/goog/events/actionhandler_test.html +82 -0
- data/closure-library/closure/goog/events/browserevent.js +412 -0
- data/closure-library/closure/goog/events/browserevent_test.html +145 -0
- data/closure-library/closure/goog/events/browserfeature.js +43 -0
- data/closure-library/closure/goog/events/event.js +123 -0
- data/closure-library/closure/goog/events/event_test.html +70 -0
- data/closure-library/closure/goog/events/eventhandler.js +348 -0
- data/closure-library/closure/goog/events/eventhandler_test.html +230 -0
- data/closure-library/closure/goog/events/events.js +1101 -0
- data/closure-library/closure/goog/events/events_test.html +362 -0
- data/closure-library/closure/goog/events/eventtarget.js +197 -0
- data/closure-library/closure/goog/events/eventtarget_test.html +423 -0
- data/closure-library/closure/goog/events/eventtype.js +107 -0
- data/closure-library/closure/goog/events/eventwrapper.js +67 -0
- data/closure-library/closure/goog/events/filedrophandler.js +224 -0
- data/closure-library/closure/goog/events/filedrophandler_test.html +258 -0
- data/closure-library/closure/goog/events/focushandler.js +111 -0
- data/closure-library/closure/goog/events/imehandler.js +365 -0
- data/closure-library/closure/goog/events/imehandler_test.html +271 -0
- data/closure-library/closure/goog/events/inputhandler.js +218 -0
- data/closure-library/closure/goog/events/keycodes.js +314 -0
- data/closure-library/closure/goog/events/keycodes_test.html +72 -0
- data/closure-library/closure/goog/events/keyhandler.js +522 -0
- data/closure-library/closure/goog/events/keyhandler_test.html +621 -0
- data/closure-library/closure/goog/events/keynames.js +124 -0
- data/closure-library/closure/goog/events/listener.js +160 -0
- data/closure-library/closure/goog/events/mousewheelhandler.js +280 -0
- data/closure-library/closure/goog/events/mousewheelhandler_test.html +331 -0
- data/closure-library/closure/goog/events/onlinehandler.js +176 -0
- data/closure-library/closure/goog/events/onlinelistener_test.html +214 -0
- data/closure-library/closure/goog/events/pastehandler.js +444 -0
- data/closure-library/closure/goog/events/pastehandler_test.html +354 -0
- data/closure-library/closure/goog/events/pools.js +342 -0
- data/closure-library/closure/goog/format/emailaddress.js +329 -0
- data/closure-library/closure/goog/format/emailaddress_test.html +179 -0
- data/closure-library/closure/goog/format/format.js +451 -0
- data/closure-library/closure/goog/format/format_test.html +257 -0
- data/closure-library/closure/goog/format/htmlprettyprinter.js +406 -0
- data/closure-library/closure/goog/format/htmlprettyprinter_test.html +205 -0
- data/closure-library/closure/goog/format/jsonprettyprinter.js +405 -0
- data/closure-library/closure/goog/format/jsonprettyprinter_test.html +111 -0
- data/closure-library/closure/goog/fs/entry.js +406 -0
- data/closure-library/closure/goog/fs/error.js +103 -0
- data/closure-library/closure/goog/fs/filesaver.js +214 -0
- data/closure-library/closure/goog/fs/filesystem.js +59 -0
- data/closure-library/closure/goog/fs/filewriter.js +106 -0
- data/closure-library/closure/goog/fs/fs.js +183 -0
- data/closure-library/closure/goog/fs/fs_test.html +270 -0
- data/closure-library/closure/goog/functions/functions.js +219 -0
- data/closure-library/closure/goog/functions/functions_test.html +198 -0
- data/closure-library/closure/goog/fx/abstractdragdrop.js +1451 -0
- data/closure-library/closure/goog/fx/abstractdragdrop_test.html +430 -0
- data/closure-library/closure/goog/fx/animation.js +621 -0
- data/closure-library/closure/goog/fx/animationqueue.js +348 -0
- data/closure-library/closure/goog/fx/cssspriteanimation.js +112 -0
- data/closure-library/closure/goog/fx/cssspriteanimation_test.html +125 -0
- data/closure-library/closure/goog/fx/dom.js +610 -0
- data/closure-library/closure/goog/fx/dragdrop.js +49 -0
- data/closure-library/closure/goog/fx/dragdropgroup.js +107 -0
- data/closure-library/closure/goog/fx/dragdropgroup_test.html +234 -0
- data/closure-library/closure/goog/fx/dragger.js +731 -0
- data/closure-library/closure/goog/fx/dragger_test.html +415 -0
- data/closure-library/closure/goog/fx/draglistgroup.js +1159 -0
- data/closure-library/closure/goog/fx/draglistgroup_test.html +231 -0
- data/closure-library/closure/goog/fx/dragscrollsupport.js +274 -0
- data/closure-library/closure/goog/fx/dragscrollsupport_test.html +253 -0
- data/closure-library/closure/goog/fx/easing.js +50 -0
- data/closure-library/closure/goog/fx/fx.js +30 -0
- data/closure-library/closure/goog/fx/fx_test.html +157 -0
- data/closure-library/closure/goog/gears/basestore.js +523 -0
- data/closure-library/closure/goog/gears/basestore_test.html +247 -0
- data/closure-library/closure/goog/gears/database.js +935 -0
- data/closure-library/closure/goog/gears/database_test.html +699 -0
- data/closure-library/closure/goog/gears/fakeworkerpool.js +252 -0
- data/closure-library/closure/goog/gears/fakeworkerpool_test.html +188 -0
- data/closure-library/closure/goog/gears/gears.js +228 -0
- data/closure-library/closure/goog/gears/gears_test.html +78 -0
- data/closure-library/closure/goog/gears/httprequest.js +77 -0
- data/closure-library/closure/goog/gears/loggerclient.js +131 -0
- data/closure-library/closure/goog/gears/loggerclient_test.html +171 -0
- data/closure-library/closure/goog/gears/loggerserver.js +158 -0
- data/closure-library/closure/goog/gears/loggerserver_test.html +118 -0
- data/closure-library/closure/goog/gears/logstore.js +479 -0
- data/closure-library/closure/goog/gears/logstore_test.html +600 -0
- data/closure-library/closure/goog/gears/managedresourcestore.js +553 -0
- data/closure-library/closure/goog/gears/managedresourcestore_test.html +453 -0
- data/closure-library/closure/goog/gears/multipartformdata.js +203 -0
- data/closure-library/closure/goog/gears/multipartformdata_test.html +220 -0
- data/closure-library/closure/goog/gears/statustype.js +37 -0
- data/closure-library/closure/goog/gears/urlcapture.js +370 -0
- data/closure-library/closure/goog/gears/urlcapture_test.html +392 -0
- data/closure-library/closure/goog/gears/worker.js +201 -0
- data/closure-library/closure/goog/gears/workerchannel.js +205 -0
- data/closure-library/closure/goog/gears/workerchannel_test.html +207 -0
- data/closure-library/closure/goog/gears/workerpool.js +241 -0
- data/closure-library/closure/goog/gears/workerpool_test.html +203 -0
- data/closure-library/closure/goog/graphics/abstractgraphics.js +439 -0
- data/closure-library/closure/goog/graphics/affinetransform.js +497 -0
- data/closure-library/closure/goog/graphics/affinetransform_test.html +316 -0
- data/closure-library/closure/goog/graphics/canvaselement.js +776 -0
- data/closure-library/closure/goog/graphics/canvasgraphics.js +632 -0
- data/closure-library/closure/goog/graphics/element.js +145 -0
- data/closure-library/closure/goog/graphics/ellipseelement.js +59 -0
- data/closure-library/closure/goog/graphics/ext/coordinates.js +158 -0
- data/closure-library/closure/goog/graphics/ext/coordinates_test.html +74 -0
- data/closure-library/closure/goog/graphics/ext/element.js +970 -0
- data/closure-library/closure/goog/graphics/ext/element_test.html +144 -0
- data/closure-library/closure/goog/graphics/ext/ellipse.js +58 -0
- data/closure-library/closure/goog/graphics/ext/ext.js +29 -0
- data/closure-library/closure/goog/graphics/ext/graphics.js +209 -0
- data/closure-library/closure/goog/graphics/ext/group.js +213 -0
- data/closure-library/closure/goog/graphics/ext/image.js +62 -0
- data/closure-library/closure/goog/graphics/ext/path.js +140 -0
- data/closure-library/closure/goog/graphics/ext/path_test.html +46 -0
- data/closure-library/closure/goog/graphics/ext/rectangle.js +53 -0
- data/closure-library/closure/goog/graphics/ext/shape.js +144 -0
- data/closure-library/closure/goog/graphics/ext/strokeandfillelement.js +69 -0
- data/closure-library/closure/goog/graphics/fill.js +29 -0
- data/closure-library/closure/goog/graphics/font.js +59 -0
- data/closure-library/closure/goog/graphics/graphics.js +124 -0
- data/closure-library/closure/goog/graphics/groupelement.js +54 -0
- data/closure-library/closure/goog/graphics/imageelement.js +67 -0
- data/closure-library/closure/goog/graphics/lineargradient.js +131 -0
- data/closure-library/closure/goog/graphics/path.js +508 -0
- data/closure-library/closure/goog/graphics/path_test.html +359 -0
- data/closure-library/closure/goog/graphics/pathelement.js +50 -0
- data/closure-library/closure/goog/graphics/paths.js +86 -0
- data/closure-library/closure/goog/graphics/paths_test.html +97 -0
- data/closure-library/closure/goog/graphics/rectelement.js +59 -0
- data/closure-library/closure/goog/graphics/solidfill.js +70 -0
- data/closure-library/closure/goog/graphics/stroke.js +63 -0
- data/closure-library/closure/goog/graphics/strokeandfillelement.js +110 -0
- data/closure-library/closure/goog/graphics/svgelement.js +262 -0
- data/closure-library/closure/goog/graphics/svggraphics.js +813 -0
- data/closure-library/closure/goog/graphics/textelement.js +51 -0
- data/closure-library/closure/goog/graphics/vmlelement.js +380 -0
- data/closure-library/closure/goog/graphics/vmlgraphics.js +863 -0
- data/closure-library/closure/goog/history/event.js +54 -0
- data/closure-library/closure/goog/history/eventtype.js +30 -0
- data/closure-library/closure/goog/history/history.js +979 -0
- data/closure-library/closure/goog/history/html5history.js +303 -0
- data/closure-library/closure/goog/history/html5history_test.html +163 -0
- data/closure-library/closure/goog/i18n/bidi.js +772 -0
- data/closure-library/closure/goog/i18n/bidi_test.html +414 -0
- data/closure-library/closure/goog/i18n/bidiformatter.js +488 -0
- data/closure-library/closure/goog/i18n/bidiformatter_test.html +343 -0
- data/closure-library/closure/goog/i18n/charlistdecompressor.js +157 -0
- data/closure-library/closure/goog/i18n/charlistdecompressor_test.html +65 -0
- data/closure-library/closure/goog/i18n/charpickerdata.js +3185 -0
- data/closure-library/closure/goog/i18n/currency.js +385 -0
- data/closure-library/closure/goog/i18n/currency_test.html +202 -0
- data/closure-library/closure/goog/i18n/currencycodemap.js +210 -0
- data/closure-library/closure/goog/i18n/datetimeformat.js +636 -0
- data/closure-library/closure/goog/i18n/datetimeformat_test.html +436 -0
- data/closure-library/closure/goog/i18n/datetimeparse.js +1111 -0
- data/closure-library/closure/goog/i18n/datetimeparse_test.html +796 -0
- data/closure-library/closure/goog/i18n/datetimepatterns.js +1586 -0
- data/closure-library/closure/goog/i18n/datetimepatternsext.js +7386 -0
- data/closure-library/closure/goog/i18n/datetimesymbols.js +3350 -0
- data/closure-library/closure/goog/i18n/datetimesymbolsext.js +12938 -0
- data/closure-library/closure/goog/i18n/graphemebreak.js +181 -0
- data/closure-library/closure/goog/i18n/graphemebreak_test.html +72 -0
- data/closure-library/closure/goog/i18n/messageformat.js +553 -0
- data/closure-library/closure/goog/i18n/messageformat_test.html +323 -0
- data/closure-library/closure/goog/i18n/mime.js +100 -0
- data/closure-library/closure/goog/i18n/mime_test.html +51 -0
- data/closure-library/closure/goog/i18n/numberformat.js +763 -0
- data/closure-library/closure/goog/i18n/numberformat_test.html +605 -0
- data/closure-library/closure/goog/i18n/numberformatsymbols.js +10358 -0
- data/closure-library/closure/goog/i18n/pluralrules.js +695 -0
- data/closure-library/closure/goog/i18n/timezone.js +341 -0
- data/closure-library/closure/goog/i18n/timezone_test.html +163 -0
- data/closure-library/closure/goog/i18n/uchar.js +1160 -0
- data/closure-library/closure/goog/i18n/uchar_test.html +72 -0
- data/closure-library/closure/goog/images/blank.gif +0 -0
- data/closure-library/closure/goog/images/bubble_close.jpg +0 -0
- data/closure-library/closure/goog/images/bubble_left.gif +0 -0
- data/closure-library/closure/goog/images/bubble_right.gif +0 -0
- data/closure-library/closure/goog/images/button-bg.gif +0 -0
- data/closure-library/closure/goog/images/check-outline.gif +0 -0
- data/closure-library/closure/goog/images/check-sprite.gif +0 -0
- data/closure-library/closure/goog/images/check.gif +0 -0
- data/closure-library/closure/goog/images/close_box.gif +0 -0
- data/closure-library/closure/goog/images/color-swatch-tick.gif +0 -0
- data/closure-library/closure/goog/images/dialog_close_box.gif +0 -0
- data/closure-library/closure/goog/images/dimension-highlighted.png +0 -0
- data/closure-library/closure/goog/images/dimension-unhighlighted.png +0 -0
- data/closure-library/closure/goog/images/dropdn.gif +0 -0
- data/closure-library/closure/goog/images/dropdn_disabled.gif +0 -0
- data/closure-library/closure/goog/images/dropdown.gif +0 -0
- data/closure-library/closure/goog/images/gears_bluedot.gif +0 -0
- data/closure-library/closure/goog/images/gears_offline.gif +0 -0
- data/closure-library/closure/goog/images/gears_online.gif +0 -0
- data/closure-library/closure/goog/images/gears_paused.gif +0 -0
- data/closure-library/closure/goog/images/gears_syncing.gif +0 -0
- data/closure-library/closure/goog/images/hsv-sprite-sm.gif +0 -0
- data/closure-library/closure/goog/images/hsv-sprite-sm.png +0 -0
- data/closure-library/closure/goog/images/hsv-sprite.gif +0 -0
- data/closure-library/closure/goog/images/hsv-sprite.png +0 -0
- data/closure-library/closure/goog/images/hsva-sprite-sm.gif +0 -0
- data/closure-library/closure/goog/images/hsva-sprite-sm.png +0 -0
- data/closure-library/closure/goog/images/hsva-sprite.gif +0 -0
- data/closure-library/closure/goog/images/hsva-sprite.png +0 -0
- data/closure-library/closure/goog/images/left_anchor_bubble_bot.gif +0 -0
- data/closure-library/closure/goog/images/left_anchor_bubble_top.gif +0 -0
- data/closure-library/closure/goog/images/menu-arrows.gif +0 -0
- data/closure-library/closure/goog/images/minus.png +0 -0
- data/closure-library/closure/goog/images/no_anchor_bubble_bot.gif +0 -0
- data/closure-library/closure/goog/images/no_anchor_bubble_top.gif +0 -0
- data/closure-library/closure/goog/images/offlineicons.png +0 -0
- data/closure-library/closure/goog/images/plus.png +0 -0
- data/closure-library/closure/goog/images/ratingstars.gif +0 -0
- data/closure-library/closure/goog/images/right_anchor_bubble_bot.gif +0 -0
- data/closure-library/closure/goog/images/right_anchor_bubble_top.gif +0 -0
- data/closure-library/closure/goog/images/toolbar-bg.png +0 -0
- data/closure-library/closure/goog/images/toolbar-separator.gif +0 -0
- data/closure-library/closure/goog/images/toolbar_icons.gif +0 -0
- data/closure-library/closure/goog/images/tree/I.png +0 -0
- data/closure-library/closure/goog/images/tree/cleardot.gif +0 -0
- data/closure-library/closure/goog/images/tree/tree.gif +0 -0
- data/closure-library/closure/goog/images/tree/tree.png +0 -0
- data/closure-library/closure/goog/images/ui_controls.jpg +0 -0
- data/closure-library/closure/goog/iter/iter.js +627 -0
- data/closure-library/closure/goog/iter/iter_test.html +443 -0
- data/closure-library/closure/goog/json/json.js +302 -0
- data/closure-library/closure/goog/json/json_test.html +501 -0
- data/closure-library/closure/goog/locale/countries.js +288 -0
- data/closure-library/closure/goog/locale/countrylanguagenames_test.html +233 -0
- data/closure-library/closure/goog/locale/defaultlocalenameconstants.js +847 -0
- data/closure-library/closure/goog/locale/genericfontnames.js +73 -0
- data/closure-library/closure/goog/locale/genericfontnames_test.html +97 -0
- data/closure-library/closure/goog/locale/genericfontnamesdata.js +328 -0
- data/closure-library/closure/goog/locale/locale.js +397 -0
- data/closure-library/closure/goog/locale/nativenameconstants.js +1354 -0
- data/closure-library/closure/goog/locale/scriptToLanguages.js +482 -0
- data/closure-library/closure/goog/locale/timezonedetection.js +117 -0
- data/closure-library/closure/goog/locale/timezonedetection_test.html +130 -0
- data/closure-library/closure/goog/locale/timezonefingerprint.js +250 -0
- data/closure-library/closure/goog/locale/timezonelist.js +129 -0
- data/closure-library/closure/goog/locale/timezonelist_test.html +165 -0
- data/closure-library/closure/goog/math/bezier.js +244 -0
- data/closure-library/closure/goog/math/bezier_test.html +70 -0
- data/closure-library/closure/goog/math/box.js +236 -0
- data/closure-library/closure/goog/math/box_test.html +139 -0
- data/closure-library/closure/goog/math/coordinate.js +136 -0
- data/closure-library/closure/goog/math/coordinate3.js +168 -0
- data/closure-library/closure/goog/math/coordinate3_test.html +208 -0
- data/closure-library/closure/goog/math/coordinate_test.html +92 -0
- data/closure-library/closure/goog/math/integer.js +736 -0
- data/closure-library/closure/goog/math/integer_test.html +1653 -0
- data/closure-library/closure/goog/math/line.js +177 -0
- data/closure-library/closure/goog/math/line_test.html +62 -0
- data/closure-library/closure/goog/math/long.js +801 -0
- data/closure-library/closure/goog/math/long_test.html +1571 -0
- data/closure-library/closure/goog/math/math.js +355 -0
- data/closure-library/closure/goog/math/math_test.html +254 -0
- data/closure-library/closure/goog/math/matrix.js +669 -0
- data/closure-library/closure/goog/math/matrix_test.html +427 -0
- data/closure-library/closure/goog/math/range.js +146 -0
- data/closure-library/closure/goog/math/range_test.html +103 -0
- data/closure-library/closure/goog/math/rangeset.js +368 -0
- data/closure-library/closure/goog/math/rangeset_test.html +619 -0
- data/closure-library/closure/goog/math/rect.js +340 -0
- data/closure-library/closure/goog/math/rect_test.html +315 -0
- data/closure-library/closure/goog/math/size.js +201 -0
- data/closure-library/closure/goog/math/size_test.html +174 -0
- data/closure-library/closure/goog/math/vec2.js +255 -0
- data/closure-library/closure/goog/math/vec2_test.html +203 -0
- data/closure-library/closure/goog/math/vec3.js +327 -0
- data/closure-library/closure/goog/math/vec3_test.html +231 -0
- data/closure-library/closure/goog/memoize/memoize.js +98 -0
- data/closure-library/closure/goog/memoize/memoize_test.html +157 -0
- data/closure-library/closure/goog/messaging/abstractchannel.js +209 -0
- data/closure-library/closure/goog/messaging/abstractchannel_test.html +90 -0
- data/closure-library/closure/goog/messaging/bufferedchannel.js +277 -0
- data/closure-library/closure/goog/messaging/bufferedchannel_test.html +205 -0
- data/closure-library/closure/goog/messaging/deferredchannel.js +79 -0
- data/closure-library/closure/goog/messaging/deferredchannel_test.html +107 -0
- data/closure-library/closure/goog/messaging/loggerclient.js +131 -0
- data/closure-library/closure/goog/messaging/loggerclient_test.html +102 -0
- data/closure-library/closure/goog/messaging/loggerserver.js +94 -0
- data/closure-library/closure/goog/messaging/loggerserver_test.html +101 -0
- data/closure-library/closure/goog/messaging/messagechannel.js +115 -0
- data/closure-library/closure/goog/messaging/messaging.js +34 -0
- data/closure-library/closure/goog/messaging/messaging_test.html +42 -0
- data/closure-library/closure/goog/messaging/multichannel.js +303 -0
- data/closure-library/closure/goog/messaging/multichannel_test.html +122 -0
- data/closure-library/closure/goog/messaging/portchannel.js +341 -0
- data/closure-library/closure/goog/messaging/portchannel_test.html +359 -0
- data/closure-library/closure/goog/messaging/testdata/portchannel_worker.js +37 -0
- data/closure-library/closure/goog/module/abstractmoduleloader.js +46 -0
- data/closure-library/closure/goog/module/basemodule.js +45 -0
- data/closure-library/closure/goog/module/basemoduleloader.js +210 -0
- data/closure-library/closure/goog/module/loader.js +269 -0
- data/closure-library/closure/goog/module/module.js +166 -0
- data/closure-library/closure/goog/module/moduleinfo.js +336 -0
- data/closure-library/closure/goog/module/moduleinfo_test.html +109 -0
- data/closure-library/closure/goog/module/moduleloadcallback.js +84 -0
- data/closure-library/closure/goog/module/moduleloadcallback_test.html +57 -0
- data/closure-library/closure/goog/module/moduleloader.js +250 -0
- data/closure-library/closure/goog/module/moduleloader_test.html +244 -0
- data/closure-library/closure/goog/module/modulemanager.js +1008 -0
- data/closure-library/closure/goog/module/modulemanager_test.html +1240 -0
- data/closure-library/closure/goog/module/testdata/modA_1.js +22 -0
- data/closure-library/closure/goog/module/testdata/modA_2.js +24 -0
- data/closure-library/closure/goog/module/testdata/modB_1.js +24 -0
- data/closure-library/closure/goog/net/browserchannel.js +2441 -0
- data/closure-library/closure/goog/net/browserchannel_test.html +1176 -0
- data/closure-library/closure/goog/net/browsertestchannel.js +552 -0
- data/closure-library/closure/goog/net/bulkloader.js +174 -0
- data/closure-library/closure/goog/net/bulkloader_test.html +232 -0
- data/closure-library/closure/goog/net/bulkloaderhelper.js +129 -0
- data/closure-library/closure/goog/net/channeldebug.js +288 -0
- data/closure-library/closure/goog/net/channelrequest.js +1125 -0
- data/closure-library/closure/goog/net/channelrequest_test.html +158 -0
- data/closure-library/closure/goog/net/cookies.js +401 -0
- data/closure-library/closure/goog/net/cookies_test.html +255 -0
- data/closure-library/closure/goog/net/crossdomainrpc.js +848 -0
- data/closure-library/closure/goog/net/crossdomainrpc_test.gif +0 -0
- data/closure-library/closure/goog/net/crossdomainrpc_test.html +120 -0
- data/closure-library/closure/goog/net/crossdomainrpc_test_response.html +59 -0
- data/closure-library/closure/goog/net/errorcode.js +130 -0
- data/closure-library/closure/goog/net/eventtype.js +37 -0
- data/closure-library/closure/goog/net/iframe_xhr_test.html +142 -0
- data/closure-library/closure/goog/net/iframe_xhr_test_response.html +17 -0
- data/closure-library/closure/goog/net/iframeio.js +1342 -0
- data/closure-library/closure/goog/net/iframeio_different_base_test.data +2 -0
- data/closure-library/closure/goog/net/iframeio_different_base_test.html +42 -0
- data/closure-library/closure/goog/net/iframeio_test.html +368 -0
- data/closure-library/closure/goog/net/iframeloadmonitor.js +199 -0
- data/closure-library/closure/goog/net/iframeloadmonitor_test.html +113 -0
- data/closure-library/closure/goog/net/iframeloadmonitor_test_frame.html +12 -0
- data/closure-library/closure/goog/net/iframeloadmonitor_test_frame2.html +12 -0
- data/closure-library/closure/goog/net/iframeloadmonitor_test_frame3.html +12 -0
- data/closure-library/closure/goog/net/imageloader.js +237 -0
- data/closure-library/closure/goog/net/imageloader_test.html +200 -0
- data/closure-library/closure/goog/net/imageloader_testimg1.gif +0 -0
- data/closure-library/closure/goog/net/imageloader_testimg2.gif +0 -0
- data/closure-library/closure/goog/net/imageloader_testimg3.gif +0 -0
- data/closure-library/closure/goog/net/jsonp.js +379 -0
- data/closure-library/closure/goog/net/jsonp_test.html +328 -0
- data/closure-library/closure/goog/net/mockiframeio.js +318 -0
- data/closure-library/closure/goog/net/mockxhrlite.js +34 -0
- data/closure-library/closure/goog/net/mockxhrlite_test.html +109 -0
- data/closure-library/closure/goog/net/multiiframeloadmonitor.js +116 -0
- data/closure-library/closure/goog/net/multiiframeloadmonitor_test.html +172 -0
- data/closure-library/closure/goog/net/networktester.js +383 -0
- data/closure-library/closure/goog/net/networktester_test.html +227 -0
- data/closure-library/closure/goog/net/tmpnetwork.js +168 -0
- data/closure-library/closure/goog/net/wrapperxmlhttpfactory.js +68 -0
- data/closure-library/closure/goog/net/xhrio.js +1093 -0
- data/closure-library/closure/goog/net/xhrio_test.html +603 -0
- data/closure-library/closure/goog/net/xhriopool.js +87 -0
- data/closure-library/closure/goog/net/xhrlite.js +119 -0
- data/closure-library/closure/goog/net/xhrlite_test.html +156 -0
- data/closure-library/closure/goog/net/xhrlitepool.js +37 -0
- data/closure-library/closure/goog/net/xhrmanager.js +763 -0
- data/closure-library/closure/goog/net/xhrmonitor.js +254 -0
- data/closure-library/closure/goog/net/xhrmonitor_test.html +199 -0
- data/closure-library/closure/goog/net/xmlhttp.js +215 -0
- data/closure-library/closure/goog/net/xmlhttpfactory.js +64 -0
- data/closure-library/closure/goog/net/xpc/crosspagechannel.js +624 -0
- data/closure-library/closure/goog/net/xpc/crosspagechannel_test.html +422 -0
- data/closure-library/closure/goog/net/xpc/frameelementmethodtransport.js +251 -0
- data/closure-library/closure/goog/net/xpc/iframepollingtransport.js +822 -0
- data/closure-library/closure/goog/net/xpc/iframerelaytransport.js +288 -0
- data/closure-library/closure/goog/net/xpc/nativemessagingtransport.js +280 -0
- data/closure-library/closure/goog/net/xpc/nativemessagingtransport_test.html +164 -0
- data/closure-library/closure/goog/net/xpc/nixtransport.js +454 -0
- data/closure-library/closure/goog/net/xpc/relay.js +72 -0
- data/closure-library/closure/goog/net/xpc/testdata/inner_peer.html +106 -0
- data/closure-library/closure/goog/net/xpc/transport.js +104 -0
- data/closure-library/closure/goog/net/xpc/xpc.js +238 -0
- data/closure-library/closure/goog/object/object.js +553 -0
- data/closure-library/closure/goog/object/object_test.html +376 -0
- data/closure-library/closure/goog/positioning/absoluteposition.js +73 -0
- data/closure-library/closure/goog/positioning/abstractposition.js +47 -0
- data/closure-library/closure/goog/positioning/anchoredposition.js +78 -0
- data/closure-library/closure/goog/positioning/anchoredviewportposition.js +126 -0
- data/closure-library/closure/goog/positioning/anchoredviewportposition_test.html +117 -0
- data/closure-library/closure/goog/positioning/anchoredviewportposition_test_iframe.html +35 -0
- data/closure-library/closure/goog/positioning/clientposition.js +75 -0
- data/closure-library/closure/goog/positioning/menuanchoredposition.js +97 -0
- data/closure-library/closure/goog/positioning/positioning.js +476 -0
- data/closure-library/closure/goog/positioning/positioning_test.html +877 -0
- data/closure-library/closure/goog/positioning/positioning_test_iframe1.html +16 -0
- data/closure-library/closure/goog/positioning/positioning_test_iframe2.html +13 -0
- data/closure-library/closure/goog/positioning/positioning_test_quirk.html +9 -0
- data/closure-library/closure/goog/positioning/positioning_test_standard.html +13 -0
- data/closure-library/closure/goog/positioning/viewportclientposition.js +102 -0
- data/closure-library/closure/goog/positioning/viewportclientposition_test.html +172 -0
- data/closure-library/closure/goog/positioning/viewportposition.js +63 -0
- data/closure-library/closure/goog/proto/proto.js +43 -0
- data/closure-library/closure/goog/proto/serializer.js +68 -0
- data/closure-library/closure/goog/proto/serializer_test.html +43 -0
- data/closure-library/closure/goog/proto2/descriptor.js +198 -0
- data/closure-library/closure/goog/proto2/descriptor_test.html +60 -0
- data/closure-library/closure/goog/proto2/fielddescriptor.js +288 -0
- data/closure-library/closure/goog/proto2/fielddescriptor_test.html +124 -0
- data/closure-library/closure/goog/proto2/lazydeserializer.js +69 -0
- data/closure-library/closure/goog/proto2/message.js +726 -0
- data/closure-library/closure/goog/proto2/message_test.html +356 -0
- data/closure-library/closure/goog/proto2/objectserializer.js +159 -0
- data/closure-library/closure/goog/proto2/objectserializer_test.html +423 -0
- data/closure-library/closure/goog/proto2/package_test.pb.js +164 -0
- data/closure-library/closure/goog/proto2/pbliteserializer.js +150 -0
- data/closure-library/closure/goog/proto2/pbliteserializer_test.html +267 -0
- data/closure-library/closure/goog/proto2/proto_test.html +693 -0
- data/closure-library/closure/goog/proto2/serializer.js +148 -0
- data/closure-library/closure/goog/proto2/test.pb.js +2820 -0
- data/closure-library/closure/goog/proto2/util.js +54 -0
- data/closure-library/closure/goog/pubsub/pubsub.js +326 -0
- data/closure-library/closure/goog/pubsub/pubsub_test.html +635 -0
- data/closure-library/closure/goog/reflect/reflect.js +50 -0
- data/closure-library/closure/goog/spell/spellcheck.js +474 -0
- data/closure-library/closure/goog/spell/spellcheck_test.html +112 -0
- data/closure-library/closure/goog/string/path.js +100 -0
- data/closure-library/closure/goog/string/path_test.html +59 -0
- data/closure-library/closure/goog/string/string.js +1207 -0
- data/closure-library/closure/goog/string/string_test.html +877 -0
- data/closure-library/closure/goog/string/stringbuffer.js +167 -0
- data/closure-library/closure/goog/string/stringbuffer_test.html +101 -0
- data/closure-library/closure/goog/string/stringformat.js +247 -0
- data/closure-library/closure/goog/string/stringformat_test.html +211 -0
- data/closure-library/closure/goog/structs/avltree.js +769 -0
- data/closure-library/closure/goog/structs/avltree_test.html +241 -0
- data/closure-library/closure/goog/structs/circularbuffer.js +219 -0
- data/closure-library/closure/goog/structs/circularbuffer_test.html +105 -0
- data/closure-library/closure/goog/structs/heap.js +332 -0
- data/closure-library/closure/goog/structs/heap_test.html +220 -0
- data/closure-library/closure/goog/structs/inversionmap.js +159 -0
- data/closure-library/closure/goog/structs/inversionmap_test.html +157 -0
- data/closure-library/closure/goog/structs/linkedmap.js +472 -0
- data/closure-library/closure/goog/structs/linkedmap_test.html +300 -0
- data/closure-library/closure/goog/structs/map.js +446 -0
- data/closure-library/closure/goog/structs/map_test.html +430 -0
- data/closure-library/closure/goog/structs/node.js +74 -0
- data/closure-library/closure/goog/structs/pool.js +344 -0
- data/closure-library/closure/goog/structs/pool_test.html +265 -0
- data/closure-library/closure/goog/structs/prioritypool.js +147 -0
- data/closure-library/closure/goog/structs/prioritypool_test.html +478 -0
- data/closure-library/closure/goog/structs/priorityqueue.js +64 -0
- data/closure-library/closure/goog/structs/priorityqueue_test.html +179 -0
- data/closure-library/closure/goog/structs/quadtree.js +571 -0
- data/closure-library/closure/goog/structs/quadtree_test.html +179 -0
- data/closure-library/closure/goog/structs/queue.js +157 -0
- data/closure-library/closure/goog/structs/queue_test.html +140 -0
- data/closure-library/closure/goog/structs/set.js +251 -0
- data/closure-library/closure/goog/structs/set_test.html +551 -0
- data/closure-library/closure/goog/structs/simplepool.js +203 -0
- data/closure-library/closure/goog/structs/stringset.js +404 -0
- data/closure-library/closure/goog/structs/stringset_test.html +251 -0
- data/closure-library/closure/goog/structs/structs.js +341 -0
- data/closure-library/closure/goog/structs/structs_test.html +1050 -0
- data/closure-library/closure/goog/structs/treenode.js +312 -0
- data/closure-library/closure/goog/structs/treenode_test.html +285 -0
- data/closure-library/closure/goog/structs/trie.js +368 -0
- data/closure-library/closure/goog/structs/trie_test.html +378 -0
- data/closure-library/closure/goog/style/cursor.js +125 -0
- data/closure-library/closure/goog/style/cursor_test.html +131 -0
- data/closure-library/closure/goog/style/style.js +1804 -0
- data/closure-library/closure/goog/style/style_quirks_test.html +1928 -0
- data/closure-library/closure/goog/style/style_test.html +2073 -0
- data/closure-library/closure/goog/style/style_test_iframe_quirk.html +29 -0
- data/closure-library/closure/goog/style/style_test_iframe_standard.html +30 -0
- data/closure-library/closure/goog/style/style_test_quirk.html +9 -0
- data/closure-library/closure/goog/style/style_test_standard.html +11 -0
- data/closure-library/closure/goog/testing/asserts.js +970 -0
- data/closure-library/closure/goog/testing/asserts_test.html +966 -0
- data/closure-library/closure/goog/testing/async/mockcontrol.js +174 -0
- data/closure-library/closure/goog/testing/async/mockcontrol_test.html +224 -0
- data/closure-library/closure/goog/testing/asynctestcase.js +812 -0
- data/closure-library/closure/goog/testing/asynctestcase_async_test.html +102 -0
- data/closure-library/closure/goog/testing/asynctestcase_noasync_test.html +98 -0
- data/closure-library/closure/goog/testing/benchmark.js +87 -0
- data/closure-library/closure/goog/testing/benchmarks/jsbinarysizebutton.js +64 -0
- data/closure-library/closure/goog/testing/benchmarks/jsbinarysizebutton_test.html +58 -0
- data/closure-library/closure/goog/testing/benchmarks/jsbinarysizetoolbar.js +66 -0
- data/closure-library/closure/goog/testing/benchmarks/jsbinarysizetoolbar_test.html +49 -0
- data/closure-library/closure/goog/testing/continuationtestcase.js +682 -0
- data/closure-library/closure/goog/testing/continuationtestcase_test.html +349 -0
- data/closure-library/closure/goog/testing/deferredtestcase.js +157 -0
- data/closure-library/closure/goog/testing/deferredtestcase_test.html +152 -0
- data/closure-library/closure/goog/testing/dom.js +596 -0
- data/closure-library/closure/goog/testing/dom_test.html +438 -0
- data/closure-library/closure/goog/testing/editor/dom.js +293 -0
- data/closure-library/closure/goog/testing/editor/dom_test.html +295 -0
- data/closure-library/closure/goog/testing/editor/fieldmock.js +90 -0
- data/closure-library/closure/goog/testing/editor/testhelper.js +168 -0
- data/closure-library/closure/goog/testing/editor/testhelper_test.html +176 -0
- data/closure-library/closure/goog/testing/events/eventobserver.js +85 -0
- data/closure-library/closure/goog/testing/events/eventobserver_test.html +70 -0
- data/closure-library/closure/goog/testing/events/events.js +540 -0
- data/closure-library/closure/goog/testing/events/events_test.html +434 -0
- data/closure-library/closure/goog/testing/events/matchers.js +41 -0
- data/closure-library/closure/goog/testing/events/matchers_test.html +40 -0
- data/closure-library/closure/goog/testing/expectedfailures.js +236 -0
- data/closure-library/closure/goog/testing/expectedfailures_test.html +122 -0
- data/closure-library/closure/goog/testing/fs/blob.js +74 -0
- data/closure-library/closure/goog/testing/fs/blob_test.html +53 -0
- data/closure-library/closure/goog/testing/fs/directoryentry_test.html +185 -0
- data/closure-library/closure/goog/testing/fs/entry.js +511 -0
- data/closure-library/closure/goog/testing/fs/entry_test.html +153 -0
- data/closure-library/closure/goog/testing/fs/file.js +51 -0
- data/closure-library/closure/goog/testing/fs/fileentry_test.html +54 -0
- data/closure-library/closure/goog/testing/fs/filesystem.js +64 -0
- data/closure-library/closure/goog/testing/fs/filewriter.js +314 -0
- data/closure-library/closure/goog/testing/fs/filewriter_test.html +248 -0
- data/closure-library/closure/goog/testing/fs/fs.js +146 -0
- data/closure-library/closure/goog/testing/fs/fs_test.html +54 -0
- data/closure-library/closure/goog/testing/fs/integration_test.html +219 -0
- data/closure-library/closure/goog/testing/functionmock.js +157 -0
- data/closure-library/closure/goog/testing/functionmock_test.html +357 -0
- data/closure-library/closure/goog/testing/graphics.js +64 -0
- data/closure-library/closure/goog/testing/jsunit.js +144 -0
- data/closure-library/closure/goog/testing/loosemock.js +240 -0
- data/closure-library/closure/goog/testing/loosemock_test.html +343 -0
- data/closure-library/closure/goog/testing/messaging/mockmessagechannel.js +77 -0
- data/closure-library/closure/goog/testing/messaging/mockmessageevent.js +100 -0
- data/closure-library/closure/goog/testing/mock.js +556 -0
- data/closure-library/closure/goog/testing/mock_test.html +208 -0
- data/closure-library/closure/goog/testing/mockclassfactory.js +580 -0
- data/closure-library/closure/goog/testing/mockclassfactory_test.html +241 -0
- data/closure-library/closure/goog/testing/mockclock.js +395 -0
- data/closure-library/closure/goog/testing/mockclock_test.html +413 -0
- data/closure-library/closure/goog/testing/mockcontrol.js +210 -0
- data/closure-library/closure/goog/testing/mockcontrol_test.html +127 -0
- data/closure-library/closure/goog/testing/mockinterface.js +45 -0
- data/closure-library/closure/goog/testing/mockmatchers.js +395 -0
- data/closure-library/closure/goog/testing/mockmatchers_test.html +388 -0
- data/closure-library/closure/goog/testing/mockrandom.js +128 -0
- data/closure-library/closure/goog/testing/mockrandom_test.html +56 -0
- data/closure-library/closure/goog/testing/mockrange.js +65 -0
- data/closure-library/closure/goog/testing/mockrange_test.html +41 -0
- data/closure-library/closure/goog/testing/mockuseragent.js +143 -0
- data/closure-library/closure/goog/testing/mockuseragent_test.html +59 -0
- data/closure-library/closure/goog/testing/multitestrunner.js +1442 -0
- data/closure-library/closure/goog/testing/net/xhrio.js +595 -0
- data/closure-library/closure/goog/testing/net/xhrio_test.html +321 -0
- data/closure-library/closure/goog/testing/objectpropertystring.js +67 -0
- data/closure-library/closure/goog/testing/performancetable.css +46 -0
- data/closure-library/closure/goog/testing/performancetable.js +162 -0
- data/closure-library/closure/goog/testing/performancetimer.js +166 -0
- data/closure-library/closure/goog/testing/performancetimer_test.html +107 -0
- data/closure-library/closure/goog/testing/propertyreplacer.js +243 -0
- data/closure-library/closure/goog/testing/propertyreplacer_test.html +368 -0
- data/closure-library/closure/goog/testing/pseudorandom.js +162 -0
- data/closure-library/closure/goog/testing/pseudorandom_test.html +98 -0
- data/closure-library/closure/goog/testing/recordfunction.js +194 -0
- data/closure-library/closure/goog/testing/recordfunction_test.html +147 -0
- data/closure-library/closure/goog/testing/singleton.js +82 -0
- data/closure-library/closure/goog/testing/singleton_test.html +39 -0
- data/closure-library/closure/goog/testing/stacktrace.js +470 -0
- data/closure-library/closure/goog/testing/stacktrace_test.html +229 -0
- data/closure-library/closure/goog/testing/strictmock.js +124 -0
- data/closure-library/closure/goog/testing/strictmock_test.html +368 -0
- data/closure-library/closure/goog/testing/style/layoutasserts.js +368 -0
- data/closure-library/closure/goog/testing/style/layoutasserts_test.html +269 -0
- data/closure-library/closure/goog/testing/testcase.js +1053 -0
- data/closure-library/closure/goog/testing/testqueue.js +66 -0
- data/closure-library/closure/goog/testing/testrunner.js +391 -0
- data/closure-library/closure/goog/testing/ui/rendererasserts.js +50 -0
- data/closure-library/closure/goog/testing/ui/rendererasserts_test.html +51 -0
- data/closure-library/closure/goog/testing/ui/rendererharness.js +175 -0
- data/closure-library/closure/goog/testing/ui/style.js +137 -0
- data/closure-library/closure/goog/testing/ui/style_reference.html +27 -0
- data/closure-library/closure/goog/testing/ui/style_test.html +130 -0
- data/closure-library/closure/goog/timer/timer.js +285 -0
- data/closure-library/closure/goog/timer/timer_test.html +118 -0
- data/closure-library/closure/goog/tweak/entries.js +990 -0
- data/closure-library/closure/goog/tweak/entries_test.html +94 -0
- data/closure-library/closure/goog/tweak/registry.js +310 -0
- data/closure-library/closure/goog/tweak/registry_test.html +144 -0
- data/closure-library/closure/goog/tweak/testhelpers.js +111 -0
- data/closure-library/closure/goog/tweak/tweak.js +318 -0
- data/closure-library/closure/goog/tweak/tweakui.js +817 -0
- data/closure-library/closure/goog/tweak/tweakui_test.html +280 -0
- data/closure-library/closure/goog/ui/abstractspellchecker.js +1069 -0
- data/closure-library/closure/goog/ui/activitymonitor.js +286 -0
- data/closure-library/closure/goog/ui/activitymonitor_test.html +44 -0
- data/closure-library/closure/goog/ui/advancedtooltip.js +369 -0
- data/closure-library/closure/goog/ui/advancedtooltip_test.html +274 -0
- data/closure-library/closure/goog/ui/animatedzippy.js +190 -0
- data/closure-library/closure/goog/ui/attachablemenu.js +464 -0
- data/closure-library/closure/goog/ui/autocomplete/arraymatcher.js +156 -0
- data/closure-library/closure/goog/ui/autocomplete/arraymatcher_test.html +130 -0
- data/closure-library/closure/goog/ui/autocomplete/autocomplete.js +627 -0
- data/closure-library/closure/goog/ui/autocomplete/autocomplete_test.html +537 -0
- data/closure-library/closure/goog/ui/autocomplete/basic.js +53 -0
- data/closure-library/closure/goog/ui/autocomplete/basic_test.html +204 -0
- data/closure-library/closure/goog/ui/autocomplete/inputhandler.js +1209 -0
- data/closure-library/closure/goog/ui/autocomplete/inputhandler_test.html +555 -0
- data/closure-library/closure/goog/ui/autocomplete/remote.js +117 -0
- data/closure-library/closure/goog/ui/autocomplete/remotearraymatcher.js +273 -0
- data/closure-library/closure/goog/ui/autocomplete/remotearraymatcher_test.html +73 -0
- data/closure-library/closure/goog/ui/autocomplete/renderer.js +852 -0
- data/closure-library/closure/goog/ui/autocomplete/renderer_test.html +386 -0
- data/closure-library/closure/goog/ui/autocomplete/richinputhandler.js +59 -0
- data/closure-library/closure/goog/ui/autocomplete/richremote.js +108 -0
- data/closure-library/closure/goog/ui/autocomplete/richremotearraymatcher.js +126 -0
- data/closure-library/closure/goog/ui/basicmenu.js +930 -0
- data/closure-library/closure/goog/ui/bidiinput.js +164 -0
- data/closure-library/closure/goog/ui/bubble.js +475 -0
- data/closure-library/closure/goog/ui/button.js +208 -0
- data/closure-library/closure/goog/ui/button_test.html +257 -0
- data/closure-library/closure/goog/ui/buttonrenderer.js +205 -0
- data/closure-library/closure/goog/ui/buttonrenderer_test.html +190 -0
- data/closure-library/closure/goog/ui/buttonside.js +40 -0
- data/closure-library/closure/goog/ui/cccbutton.js +281 -0
- data/closure-library/closure/goog/ui/charcounter.js +200 -0
- data/closure-library/closure/goog/ui/charpicker.js +807 -0
- data/closure-library/closure/goog/ui/checkbox.js +303 -0
- data/closure-library/closure/goog/ui/checkbox_test.html +224 -0
- data/closure-library/closure/goog/ui/checkboxmenuitem.js +53 -0
- data/closure-library/closure/goog/ui/colorbutton.js +58 -0
- data/closure-library/closure/goog/ui/colorbutton_test.html +70 -0
- data/closure-library/closure/goog/ui/colorbuttonrenderer.js +72 -0
- data/closure-library/closure/goog/ui/colormenubutton.js +213 -0
- data/closure-library/closure/goog/ui/colormenubuttonrenderer.js +144 -0
- data/closure-library/closure/goog/ui/colormenubuttonrenderer_test.html +88 -0
- data/closure-library/closure/goog/ui/colorpalette.js +162 -0
- data/closure-library/closure/goog/ui/colorpalette_test.html +169 -0
- data/closure-library/closure/goog/ui/colorpicker.js +344 -0
- data/closure-library/closure/goog/ui/colorsplitbehavior.js +61 -0
- data/closure-library/closure/goog/ui/combobox.js +894 -0
- data/closure-library/closure/goog/ui/combobox_test.html +208 -0
- data/closure-library/closure/goog/ui/component.js +1187 -0
- data/closure-library/closure/goog/ui/component_test.html +723 -0
- data/closure-library/closure/goog/ui/container.js +1296 -0
- data/closure-library/closure/goog/ui/container_test.html +450 -0
- data/closure-library/closure/goog/ui/containerrenderer.js +370 -0
- data/closure-library/closure/goog/ui/containerrenderer_test.html +227 -0
- data/closure-library/closure/goog/ui/containerscroller.js +221 -0
- data/closure-library/closure/goog/ui/containerscroller_test.html +213 -0
- data/closure-library/closure/goog/ui/control.js +1348 -0
- data/closure-library/closure/goog/ui/control_test.html +2128 -0
- data/closure-library/closure/goog/ui/controlcontent.js +28 -0
- data/closure-library/closure/goog/ui/controlrenderer.js +808 -0
- data/closure-library/closure/goog/ui/controlrenderer_test.html +840 -0
- data/closure-library/closure/goog/ui/cookieeditor.js +182 -0
- data/closure-library/closure/goog/ui/cookieeditor_test.html +102 -0
- data/closure-library/closure/goog/ui/css3buttonrenderer.js +147 -0
- data/closure-library/closure/goog/ui/css3menubuttonrenderer.js +144 -0
- data/closure-library/closure/goog/ui/cssnames.js +28 -0
- data/closure-library/closure/goog/ui/custombutton.js +58 -0
- data/closure-library/closure/goog/ui/custombuttonrenderer.js +254 -0
- data/closure-library/closure/goog/ui/customcolorpalette.js +137 -0
- data/closure-library/closure/goog/ui/customcolorpalette_test.html +60 -0
- data/closure-library/closure/goog/ui/datepicker.js +1339 -0
- data/closure-library/closure/goog/ui/datepicker_test.html +190 -0
- data/closure-library/closure/goog/ui/decorate.js +37 -0
- data/closure-library/closure/goog/ui/decorate_test.html +113 -0
- data/closure-library/closure/goog/ui/deprecatedbutton.js +381 -0
- data/closure-library/closure/goog/ui/dialog.js +1776 -0
- data/closure-library/closure/goog/ui/dialog_test.html +493 -0
- data/closure-library/closure/goog/ui/dimensionpicker.js +289 -0
- data/closure-library/closure/goog/ui/dimensionpicker_test.html +128 -0
- data/closure-library/closure/goog/ui/dimensionpickerrenderer.js +387 -0
- data/closure-library/closure/goog/ui/dragdropdetector.js +642 -0
- data/closure-library/closure/goog/ui/drilldownrow.js +494 -0
- data/closure-library/closure/goog/ui/editor/abstractdialog.js +443 -0
- data/closure-library/closure/goog/ui/editor/abstractdialog_test.html +467 -0
- data/closure-library/closure/goog/ui/editor/bubble.js +520 -0
- data/closure-library/closure/goog/ui/editor/bubble_test.html +264 -0
- data/closure-library/closure/goog/ui/editor/defaulttoolbar.js +1062 -0
- data/closure-library/closure/goog/ui/editor/linkdialog.js +833 -0
- data/closure-library/closure/goog/ui/editor/linkdialog_test.html +449 -0
- data/closure-library/closure/goog/ui/editor/messages.js +115 -0
- data/closure-library/closure/goog/ui/editor/tabpane.js +183 -0
- data/closure-library/closure/goog/ui/editor/toolbarcontroller.js +293 -0
- data/closure-library/closure/goog/ui/editor/toolbarfactory.js +437 -0
- data/closure-library/closure/goog/ui/editor/toolbarfactory_test.html +73 -0
- data/closure-library/closure/goog/ui/emoji/emoji.js +72 -0
- data/closure-library/closure/goog/ui/emoji/emojipalette.js +298 -0
- data/closure-library/closure/goog/ui/emoji/emojipaletterenderer.js +206 -0
- data/closure-library/closure/goog/ui/emoji/emojipicker.js +797 -0
- data/closure-library/closure/goog/ui/emoji/emojipicker_test.html +840 -0
- data/closure-library/closure/goog/ui/emoji/fast_nonprogressive_emojipicker_test.html +256 -0
- data/closure-library/closure/goog/ui/emoji/fast_progressive_emojipicker_test.html +256 -0
- data/closure-library/closure/goog/ui/emoji/popupemojipicker.js +410 -0
- data/closure-library/closure/goog/ui/emoji/popupemojipicker_test.html +80 -0
- data/closure-library/closure/goog/ui/emoji/progressiveemojipaletterenderer.js +97 -0
- data/closure-library/closure/goog/ui/emoji/spriteinfo.js +212 -0
- data/closure-library/closure/goog/ui/emoji/spriteinfo_test.html +51 -0
- data/closure-library/closure/goog/ui/filteredmenu.js +562 -0
- data/closure-library/closure/goog/ui/filteredmenu_test.html +299 -0
- data/closure-library/closure/goog/ui/filterobservingmenuitem.js +97 -0
- data/closure-library/closure/goog/ui/filterobservingmenuitemrenderer.js +60 -0
- data/closure-library/closure/goog/ui/flatbuttonrenderer.js +138 -0
- data/closure-library/closure/goog/ui/flatmenubuttonrenderer.js +199 -0
- data/closure-library/closure/goog/ui/formpost.js +109 -0
- data/closure-library/closure/goog/ui/formpost_test.html +109 -0
- data/closure-library/closure/goog/ui/gauge.js +999 -0
- data/closure-library/closure/goog/ui/gaugetheme.js +169 -0
- data/closure-library/closure/goog/ui/hovercard.js +447 -0
- data/closure-library/closure/goog/ui/hovercard_test.html +343 -0
- data/closure-library/closure/goog/ui/hsvapalette.js +311 -0
- data/closure-library/closure/goog/ui/hsvapalette_test.html +152 -0
- data/closure-library/closure/goog/ui/hsvpalette.js +470 -0
- data/closure-library/closure/goog/ui/hsvpalette_test.html +202 -0
- data/closure-library/closure/goog/ui/idgenerator.js +57 -0
- data/closure-library/closure/goog/ui/idletimer.js +299 -0
- data/closure-library/closure/goog/ui/idletimer_test.html +100 -0
- data/closure-library/closure/goog/ui/iframemask.js +256 -0
- data/closure-library/closure/goog/ui/iframemask_test.html +230 -0
- data/closure-library/closure/goog/ui/imagelessbuttonrenderer.js +204 -0
- data/closure-library/closure/goog/ui/imagelessmenubuttonrenderer.js +202 -0
- data/closure-library/closure/goog/ui/imagelessroundedcorner.js +971 -0
- data/closure-library/closure/goog/ui/inputdatepicker.js +306 -0
- data/closure-library/closure/goog/ui/inputdatepicker_test.html +109 -0
- data/closure-library/closure/goog/ui/itemevent.js +50 -0
- data/closure-library/closure/goog/ui/keyboardshortcuthandler.js +981 -0
- data/closure-library/closure/goog/ui/keyboardshortcuthandler_test.html +671 -0
- data/closure-library/closure/goog/ui/labelinput.js +439 -0
- data/closure-library/closure/goog/ui/linkbuttonrenderer.js +67 -0
- data/closure-library/closure/goog/ui/media/flashobject.js +629 -0
- data/closure-library/closure/goog/ui/media/flashobject_test.html +236 -0
- data/closure-library/closure/goog/ui/media/flickr.js +309 -0
- data/closure-library/closure/goog/ui/media/flickr_test.html +90 -0
- data/closure-library/closure/goog/ui/media/media.js +284 -0
- data/closure-library/closure/goog/ui/media/media_test.html +161 -0
- data/closure-library/closure/goog/ui/media/mediamodel.js +840 -0
- data/closure-library/closure/goog/ui/media/mp3.js +225 -0
- data/closure-library/closure/goog/ui/media/mp3_test.html +78 -0
- data/closure-library/closure/goog/ui/media/photo.js +139 -0
- data/closure-library/closure/goog/ui/media/photo_test.html +62 -0
- data/closure-library/closure/goog/ui/media/picasa.js +317 -0
- data/closure-library/closure/goog/ui/media/picasa_test.html +131 -0
- data/closure-library/closure/goog/ui/media/vimeo.js +264 -0
- data/closure-library/closure/goog/ui/media/vimeo_test.html +79 -0
- data/closure-library/closure/goog/ui/media/youtube.js +328 -0
- data/closure-library/closure/goog/ui/media/youtube_test.html +185 -0
- data/closure-library/closure/goog/ui/menu.js +435 -0
- data/closure-library/closure/goog/ui/menu_test.html +129 -0
- data/closure-library/closure/goog/ui/menubase.js +191 -0
- data/closure-library/closure/goog/ui/menubutton.js +809 -0
- data/closure-library/closure/goog/ui/menubutton_test.html +440 -0
- data/closure-library/closure/goog/ui/menubutton_test_frame.html +41 -0
- data/closure-library/closure/goog/ui/menubuttonrenderer.js +226 -0
- data/closure-library/closure/goog/ui/menubuttonrenderer_test.html +161 -0
- data/closure-library/closure/goog/ui/menuheader.js +62 -0
- data/closure-library/closure/goog/ui/menuheaderrenderer.js +55 -0
- data/closure-library/closure/goog/ui/menuitem.js +154 -0
- data/closure-library/closure/goog/ui/menuitem_test.html +506 -0
- data/closure-library/closure/goog/ui/menuitemrenderer.js +353 -0
- data/closure-library/closure/goog/ui/menuitemrenderer_test.html +190 -0
- data/closure-library/closure/goog/ui/menurenderer.js +118 -0
- data/closure-library/closure/goog/ui/menuseparator.js +51 -0
- data/closure-library/closure/goog/ui/menuseparatorrenderer.js +102 -0
- data/closure-library/closure/goog/ui/mockactivitymonitor.js +54 -0
- data/closure-library/closure/goog/ui/nativebuttonrenderer.js +205 -0
- data/closure-library/closure/goog/ui/nativebuttonrenderer_test.html +213 -0
- data/closure-library/closure/goog/ui/offlineinstalldialog.js +1086 -0
- data/closure-library/closure/goog/ui/offlinestatuscard.js +580 -0
- data/closure-library/closure/goog/ui/offlinestatuscomponent.js +545 -0
- data/closure-library/closure/goog/ui/option.js +67 -0
- data/closure-library/closure/goog/ui/palette.js +528 -0
- data/closure-library/closure/goog/ui/paletterenderer.js +318 -0
- data/closure-library/closure/goog/ui/plaintextspellchecker.js +668 -0
- data/closure-library/closure/goog/ui/plaintextspellchecker_test.html +240 -0
- data/closure-library/closure/goog/ui/popup.js +410 -0
- data/closure-library/closure/goog/ui/popup_test.html +137 -0
- data/closure-library/closure/goog/ui/popupbase.js +721 -0
- data/closure-library/closure/goog/ui/popupbase_test.html +186 -0
- data/closure-library/closure/goog/ui/popupcolorpicker.js +441 -0
- data/closure-library/closure/goog/ui/popupcolorpicker_test.html +71 -0
- data/closure-library/closure/goog/ui/popupdatepicker.js +273 -0
- data/closure-library/closure/goog/ui/popupmenu.js +539 -0
- data/closure-library/closure/goog/ui/popupmenu_test.html +197 -0
- data/closure-library/closure/goog/ui/progressbar.js +390 -0
- data/closure-library/closure/goog/ui/prompt.js +307 -0
- data/closure-library/closure/goog/ui/prompt_test.html +65 -0
- data/closure-library/closure/goog/ui/rangemodel.js +301 -0
- data/closure-library/closure/goog/ui/rangemodel_test.html +270 -0
- data/closure-library/closure/goog/ui/ratings.js +441 -0
- data/closure-library/closure/goog/ui/registry.js +166 -0
- data/closure-library/closure/goog/ui/registry_test.html +236 -0
- data/closure-library/closure/goog/ui/richtextspellchecker.js +600 -0
- data/closure-library/closure/goog/ui/richtextspellchecker_test.html +224 -0
- data/closure-library/closure/goog/ui/roundedcorners.js +694 -0
- data/closure-library/closure/goog/ui/roundedpanel.js +609 -0
- data/closure-library/closure/goog/ui/roundedpanel_test.html +57 -0
- data/closure-library/closure/goog/ui/roundedtabrenderer.js +196 -0
- data/closure-library/closure/goog/ui/scrollfloater.js +394 -0
- data/closure-library/closure/goog/ui/scrollfloater_test.html +46 -0
- data/closure-library/closure/goog/ui/select.js +397 -0
- data/closure-library/closure/goog/ui/select_test.html +152 -0
- data/closure-library/closure/goog/ui/selectionmenubutton.js +277 -0
- data/closure-library/closure/goog/ui/selectionmenubutton_test.html +237 -0
- data/closure-library/closure/goog/ui/selectionmodel.js +291 -0
- data/closure-library/closure/goog/ui/separator.js +74 -0
- data/closure-library/closure/goog/ui/serverchart.js +1791 -0
- data/closure-library/closure/goog/ui/serverchart_test.html +598 -0
- data/closure-library/closure/goog/ui/slider.js +125 -0
- data/closure-library/closure/goog/ui/sliderbase.js +1087 -0
- data/closure-library/closure/goog/ui/sliderbase_test.html +198 -0
- data/closure-library/closure/goog/ui/splitbehavior.js +348 -0
- data/closure-library/closure/goog/ui/splitbehavior_test.html +161 -0
- data/closure-library/closure/goog/ui/splitpane.js +844 -0
- data/closure-library/closure/goog/ui/splitpane_test.html +143 -0
- data/closure-library/closure/goog/ui/style/app/buttonrenderer.js +204 -0
- data/closure-library/closure/goog/ui/style/app/buttonrenderer_test.html +155 -0
- data/closure-library/closure/goog/ui/style/app/menubuttonrenderer.js +227 -0
- data/closure-library/closure/goog/ui/style/app/menubuttonrenderer_test.html +167 -0
- data/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer.js +88 -0
- data/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer_test.html +76 -0
- data/closure-library/closure/goog/ui/submenu.js +660 -0
- data/closure-library/closure/goog/ui/submenu_test.html +446 -0
- data/closure-library/closure/goog/ui/submenurenderer.js +188 -0
- data/closure-library/closure/goog/ui/tab.js +102 -0
- data/closure-library/closure/goog/ui/tab_test.html +61 -0
- data/closure-library/closure/goog/ui/tabbar.js +393 -0
- data/closure-library/closure/goog/ui/tabbar_test.html +611 -0
- data/closure-library/closure/goog/ui/tabbarrenderer.js +173 -0
- data/closure-library/closure/goog/ui/tabbarrenderer_test.html +137 -0
- data/closure-library/closure/goog/ui/tablesorter.js +304 -0
- data/closure-library/closure/goog/ui/tablesorter_test.html +127 -0
- data/closure-library/closure/goog/ui/tabpane.js +674 -0
- data/closure-library/closure/goog/ui/tabpane_test.html +107 -0
- data/closure-library/closure/goog/ui/tabrenderer.js +152 -0
- data/closure-library/closure/goog/ui/tabrenderer_test.html +132 -0
- data/closure-library/closure/goog/ui/textarea.js +573 -0
- data/closure-library/closure/goog/ui/textarea_test.html +305 -0
- data/closure-library/closure/goog/ui/textarearenderer.js +167 -0
- data/closure-library/closure/goog/ui/togglebutton.js +58 -0
- data/closure-library/closure/goog/ui/toolbar.js +45 -0
- data/closure-library/closure/goog/ui/toolbarbutton.js +54 -0
- data/closure-library/closure/goog/ui/toolbarbuttonrenderer.js +55 -0
- data/closure-library/closure/goog/ui/toolbarcolormenubutton.js +57 -0
- data/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer.js +95 -0
- data/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer_test.html +66 -0
- data/closure-library/closure/goog/ui/toolbarmenubutton.js +56 -0
- data/closure-library/closure/goog/ui/toolbarmenubuttonrenderer.js +55 -0
- data/closure-library/closure/goog/ui/toolbarrenderer.js +95 -0
- data/closure-library/closure/goog/ui/toolbarselect.js +55 -0
- data/closure-library/closure/goog/ui/toolbarseparator.js +51 -0
- data/closure-library/closure/goog/ui/toolbarseparatorrenderer.js +87 -0
- data/closure-library/closure/goog/ui/toolbartogglebutton.js +53 -0
- data/closure-library/closure/goog/ui/tooltip.js +975 -0
- data/closure-library/closure/goog/ui/tooltip_test.html +351 -0
- data/closure-library/closure/goog/ui/tree/basenode.js +1457 -0
- data/closure-library/closure/goog/ui/tree/basenode_test.html +218 -0
- data/closure-library/closure/goog/ui/tree/treecontrol.js +656 -0
- data/closure-library/closure/goog/ui/tree/treecontrol_test.html +113 -0
- data/closure-library/closure/goog/ui/tree/treenode.js +102 -0
- data/closure-library/closure/goog/ui/tree/typeahead.js +332 -0
- data/closure-library/closure/goog/ui/tree/typeahead_test.html +133 -0
- data/closure-library/closure/goog/ui/tristatemenuitem.js +185 -0
- data/closure-library/closure/goog/ui/tristatemenuitemrenderer.js +86 -0
- data/closure-library/closure/goog/ui/twothumbslider.js +134 -0
- data/closure-library/closure/goog/ui/zippy.js +277 -0
- data/closure-library/closure/goog/ui/zippy_test.html +223 -0
- data/closure-library/closure/goog/uri/uri.js +1595 -0
- data/closure-library/closure/goog/uri/uri_test.html +837 -0
- data/closure-library/closure/goog/uri/utils.js +972 -0
- data/closure-library/closure/goog/uri/utils_test.html +521 -0
- data/closure-library/closure/goog/useragent/adobereader.js +90 -0
- data/closure-library/closure/goog/useragent/adobereader_test.html +34 -0
- data/closure-library/closure/goog/useragent/flash.js +113 -0
- data/closure-library/closure/goog/useragent/flash_test.html +34 -0
- data/closure-library/closure/goog/useragent/iphoto.js +86 -0
- data/closure-library/closure/goog/useragent/jscript.js +94 -0
- data/closure-library/closure/goog/useragent/jscript_test.html +65 -0
- data/closure-library/closure/goog/useragent/picasa.js +111 -0
- data/closure-library/closure/goog/useragent/platform.js +70 -0
- data/closure-library/closure/goog/useragent/platform_test.html +108 -0
- data/closure-library/closure/goog/useragent/product.js +253 -0
- data/closure-library/closure/goog/useragent/product_isversion.js +99 -0
- data/closure-library/closure/goog/useragent/product_test.html +322 -0
- data/closure-library/closure/goog/useragent/useragent.js +464 -0
- data/closure-library/closure/goog/useragent/useragent_test.html +290 -0
- data/closure-library/closure/goog/window/window.js +206 -0
- data/closure-library/closure/goog/window/window_test.html +185 -0
- data/closure-library/third_party/closure/goog/base.js +2 -0
- data/closure-library/third_party/closure/goog/caja/string/html/htmlparser.js +611 -0
- data/closure-library/third_party/closure/goog/caja/string/html/htmlsanitizer.js +605 -0
- data/closure-library/third_party/closure/goog/deps.js +26 -0
- data/closure-library/third_party/closure/goog/dojo/dom/query.js +1532 -0
- data/closure-library/third_party/closure/goog/dojo/dom/query_test.html +63 -0
- data/closure-library/third_party/closure/goog/dojo/dom/query_test.js +160 -0
- data/closure-library/third_party/closure/goog/jpeg_encoder/jpeg_encoder_basic.js +751 -0
- data/closure-library/third_party/closure/goog/loremipsum/text/loremipsum.js +712 -0
- data/closure-library/third_party/closure/goog/loremipsum/text/loremipsum_test.html +61 -0
- data/closure-library/third_party/closure/goog/mochikit/async/deferred.js +530 -0
- data/closure-library/third_party/closure/goog/mochikit/async/deferred_test.html +627 -0
- data/closure-library/third_party/closure/goog/mochikit/async/deferredlist.js +199 -0
- data/closure-library/third_party/closure/goog/mochikit/async/deferredlist_test.html +426 -0
- data/closure-library/third_party/closure/goog/osapi/osapi.js +91 -0
- data/closure-library/third_party/closure/goog/silverlight/AppManifest.xml +6 -0
- data/closure-library/third_party/closure/goog/silverlight/AssemblyInfo.cs +35 -0
- data/closure-library/third_party/closure/goog/silverlight/ClipboardButton.xaml +9 -0
- data/closure-library/third_party/closure/goog/silverlight/ClipboardButton.xaml.cs +74 -0
- data/closure-library/third_party/closure/goog/silverlight/ClipboardButtonApp.xaml +8 -0
- data/closure-library/third_party/closure/goog/silverlight/ClipboardButtonApp.xaml.cs +75 -0
- data/closure-library/third_party/closure/goog/silverlight/ClosureClipboardButton.csproj +108 -0
- data/closure-library/third_party/closure/goog/silverlight/ClosureClipboardButton.csproj.user +29 -0
- data/closure-library/third_party/closure/goog/silverlight/clipboardbutton.js +279 -0
- data/closure-library/third_party/closure/goog/silverlight/silverlight.js +758 -0
- data/closure-library/third_party/closure/goog/silverlight/supporteduseragent.js +138 -0
- data/closure-library/third_party/closure/goog/silverlight/xap_files +0 -0
- data/closure-templates/COPYING +202 -0
- data/closure-templates/README +47 -0
- data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
- data/closure-templates/soyutils.js +880 -0
- data/closure-templates/soyutils_usegoog.js +308 -0
- data/closure.gemspec +20 -0
- data/config.ru +40 -0
- data/java_src/ClosureScript.java +89 -0
- data/java_src/make.rb +19 -0
- data/lib/closure/beanshell.rb +80 -0
- data/lib/closure/compiler.rb +184 -0
- data/lib/closure/file_response.rb +90 -0
- data/lib/closure/goog.rb +143 -0
- data/lib/closure/middleware.rb +43 -0
- data/lib/closure/sass.rb +56 -0
- data/lib/closure/script.rb +139 -0
- data/lib/closure/server.rb +83 -0
- data/lib/closure/sources.rb +310 -0
- data/lib/closure/templates.rb +156 -0
- data/lib/closure/version.rb +20 -0
- data/lib/closure.jar +0 -0
- data/lib/closure.rb +134 -0
- data/scripts/demos/compile.js.erb +8 -0
- data/scripts/demos/compile.out +1 -0
- data/scripts/demos/compiler.haml +17 -0
- data/scripts/demos/compiler.js +12 -0
- data/scripts/demos/deps.js.erb +1 -0
- data/scripts/demos/externs.haml +16 -0
- data/scripts/demos/externs.js.erb +8 -0
- data/scripts/demos/externs.out +1 -0
- data/scripts/demos/externs_jquery.externs +849 -0
- data/scripts/demos/externs_jquery.js +167 -0
- data/scripts/demos/externs_jquerytest.js +11 -0
- data/scripts/demos/helloworld.haml +15 -0
- data/scripts/demos/helloworld.js +58 -0
- data/scripts/demos/helloworld.soy +45 -0
- data/scripts/demos/index.haml +21 -0
- data/scripts/demos/rails_ujs.haml +24 -0
- data/scripts/examples/rails/ujs.js +136 -0
- data/scripts/favicon.ico +0 -0
- data/scripts/fixtures/_partial.haml +2 -0
- data/scripts/fixtures/erb.html.erb +8 -0
- data/scripts/fixtures/haml.haml +6 -0
- data/scripts/fixtures/html.html +9 -0
- data/scripts/fixtures/route_js.js.erb +1 -0
- data/scripts/index.haml +14 -0
- data/test/beanshell_test.rb +22 -0
- data/test/server_test.rb +67 -0
- data/test/sources_test.rb +41 -0
- data/test/test_helper.rb +12 -0
- metadata +1577 -0
@@ -0,0 +1,920 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<!--
|
4
|
+
All Rights Reserved.
|
5
|
+
-->
|
6
|
+
|
7
|
+
<html>
|
8
|
+
<!--
|
9
|
+
Copyright 2008 The Closure Library Authors. All Rights Reserved.
|
10
|
+
|
11
|
+
Use of this source code is governed by the Apache License, Version 2.0.
|
12
|
+
See the COPYING file for details.
|
13
|
+
-->
|
14
|
+
<head>
|
15
|
+
<!--
|
16
|
+
This test has not yet been updated to run on IE8. See http://b/hotlist?id=36311
|
17
|
+
-->
|
18
|
+
<!--meta http-equiv="X-UA-Compatible" content="IE=edge"-->
|
19
|
+
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
|
20
|
+
<title>goog.editor.plugins.RemoveFormatting Tests</title>
|
21
|
+
<script type="text/javascript" src="../../base.js"></script>
|
22
|
+
<script type="text/javascript">
|
23
|
+
goog.require('goog.dom.Range');
|
24
|
+
goog.require('goog.editor.plugins.RemoveFormatting');
|
25
|
+
goog.require('goog.testing.dom');
|
26
|
+
goog.require('goog.testing.editor.FieldMock');
|
27
|
+
goog.require('goog.testing.editor.TestHelper');
|
28
|
+
goog.require('goog.testing.ExpectedFailures');
|
29
|
+
goog.require('goog.testing.jsunit');
|
30
|
+
goog.require('goog.userAgent');
|
31
|
+
</script>
|
32
|
+
</head>
|
33
|
+
<body>
|
34
|
+
|
35
|
+
<div id="html"></div>
|
36
|
+
|
37
|
+
<div id="abcde">abcde</div>
|
38
|
+
|
39
|
+
<script type="text/javascript">
|
40
|
+
var SAVED_HTML;
|
41
|
+
var FIELDMOCK;
|
42
|
+
var FORMATTER;
|
43
|
+
var testHelper;
|
44
|
+
|
45
|
+
// Extra html to add to test html to make sure removeformatting is actually
|
46
|
+
// getting called when you're testing if it leaves certain styles alone
|
47
|
+
// (instead of not even running at all due to some other bug). However, adding
|
48
|
+
// this extra text into the node to be selected screws up IE.
|
49
|
+
// (e.g. <a><img></a><b>t</b> --> <a></a><a><img></a>t )
|
50
|
+
// TODO(marcosalmeida): Remove this special casing once http://b/3131117 is
|
51
|
+
// fixed.
|
52
|
+
var controlHtml = goog.userAgent.IE ? '' : '<u>control</u>';
|
53
|
+
var controlCleanHtml = goog.userAgent.IE ? '' : 'control';
|
54
|
+
|
55
|
+
var expectedFailures = new goog.testing.ExpectedFailures();
|
56
|
+
|
57
|
+
function setUp() {
|
58
|
+
testHelper = new goog.testing.editor.TestHelper(
|
59
|
+
document.getElementById('html'));
|
60
|
+
testHelper.setUpEditableElement();
|
61
|
+
|
62
|
+
FIELDMOCK = new goog.testing.editor.FieldMock();
|
63
|
+
FIELDMOCK.getElement();
|
64
|
+
FIELDMOCK.$anyTimes();
|
65
|
+
FIELDMOCK.$returns(document.getElementById('html'));
|
66
|
+
|
67
|
+
FORMATTER = new goog.editor.plugins.RemoveFormatting();
|
68
|
+
FORMATTER.fieldObject = FIELDMOCK;
|
69
|
+
|
70
|
+
FIELDMOCK.$replay();
|
71
|
+
}
|
72
|
+
|
73
|
+
function tearDown() {
|
74
|
+
expectedFailures.handleTearDown();
|
75
|
+
testHelper.tearDownEditableElement();
|
76
|
+
}
|
77
|
+
|
78
|
+
function setUpTableTests() {
|
79
|
+
var div = document.getElementById('html');
|
80
|
+
div.innerHTML = '<table><tr> <th> head1</th><th id= "outerTh">' +
|
81
|
+
'<span id="emptyTh">head2</span></th> </tr><tr> <td> one </td> <td>' +
|
82
|
+
'two </td> </tr><tr><td> three</td><td id="outerTd"> ' +
|
83
|
+
'<span id="emptyTd"><strong>four</strong></span></td></tr>' +
|
84
|
+
'<tr id="outerTr"><td><span id="emptyTr"> five </span></td></tr>' +
|
85
|
+
'<tr id="outerTr2"><td id="cell1"><b>seven</b></td><td id="cell2">' +
|
86
|
+
'<u>eight</u><span id="cellspan2"> foo</span></td></tr></table>';
|
87
|
+
}
|
88
|
+
|
89
|
+
function testTableTagsAreNotRemoved() {
|
90
|
+
setUpTableTests();
|
91
|
+
var span;
|
92
|
+
|
93
|
+
// TD
|
94
|
+
span = document.getElementById('emptyTd');
|
95
|
+
goog.dom.Range.createFromNodeContents(span).select();
|
96
|
+
FORMATTER.removeFormatting_();
|
97
|
+
|
98
|
+
var elem = document.getElementById('outerTd');
|
99
|
+
assert('TD should not be removed', !!elem);
|
100
|
+
if (!goog.userAgent.WEBKIT) {
|
101
|
+
// webkit seems to have an Apple-style-span
|
102
|
+
assertEquals('TD should be clean', 'four',
|
103
|
+
goog.string.trim(elem.innerHTML));
|
104
|
+
}
|
105
|
+
|
106
|
+
// TR
|
107
|
+
span = document.getElementById('outerTr');
|
108
|
+
goog.dom.Range.createFromNodeContents(span).select();
|
109
|
+
FORMATTER.removeFormatting_();
|
110
|
+
|
111
|
+
var elem = document.getElementById('outerTr');
|
112
|
+
assert('TR should not be removed', !!elem);
|
113
|
+
|
114
|
+
// TH
|
115
|
+
span = document.getElementById('emptyTh');
|
116
|
+
goog.dom.Range.createFromNodeContents(span).select();
|
117
|
+
FORMATTER.removeFormatting_();
|
118
|
+
|
119
|
+
var elem = document.getElementById('outerTh');
|
120
|
+
assert('TH should not be removed', !!elem);
|
121
|
+
if (!goog.userAgent.WEBKIT) {
|
122
|
+
// webkit seems to have an Apple-style-span
|
123
|
+
assertEquals('TH should be clean', 'head2', elem.innerHTML);
|
124
|
+
}
|
125
|
+
|
126
|
+
}
|
127
|
+
|
128
|
+
/**
|
129
|
+
* We select two cells from the table and then make sure that there is no
|
130
|
+
* data loss and basic formatting is removed from each cell.
|
131
|
+
*/
|
132
|
+
function testTableDataIsNotRemoved() {
|
133
|
+
setUpTableTests();
|
134
|
+
if (goog.userAgent.IE) {
|
135
|
+
// IE returns an "unspecified error" which seems to be beyond
|
136
|
+
// ExpectedFailures' ability to catch.
|
137
|
+
return;
|
138
|
+
}
|
139
|
+
|
140
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
141
|
+
'The content moves out of the table in WEBKIT.');
|
142
|
+
|
143
|
+
if (goog.userAgent.IE) {
|
144
|
+
// Not used since we bail out early for IE, but this is there so that
|
145
|
+
// developers can easily reproduce IE error.
|
146
|
+
goog.dom.Range.createFromNodeContents(
|
147
|
+
document.getElementById('outerTr2')).select();
|
148
|
+
} else {
|
149
|
+
var selection = window.getSelection();
|
150
|
+
if (selection.rangeCount > 0) selection.removeAllRanges();
|
151
|
+
var range = document.createRange();
|
152
|
+
range.selectNode(document.getElementById('cell1'));
|
153
|
+
selection.addRange(range);
|
154
|
+
range = document.createRange();
|
155
|
+
range.selectNode(document.getElementById('cell2'));
|
156
|
+
selection.addRange(range);
|
157
|
+
}
|
158
|
+
|
159
|
+
expectedFailures.run(function() {
|
160
|
+
FORMATTER.removeFormatting_();
|
161
|
+
|
162
|
+
span = document.getElementById('outerTr2');
|
163
|
+
assertEquals('Table data should not be removed',
|
164
|
+
'<td id="cell1">seven</td><td id="cell2">eight foo</td>',
|
165
|
+
span.innerHTML);
|
166
|
+
});
|
167
|
+
}
|
168
|
+
|
169
|
+
function testLinksAreNotRemoved() {
|
170
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
171
|
+
'WebKit\'s removeFormatting command removes links.');
|
172
|
+
|
173
|
+
var anchor;
|
174
|
+
var div = document.getElementById('html');
|
175
|
+
div.innerHTML = 'Foo<span id="link">Pre<a href="http://www.google.com">' +
|
176
|
+
'Outside Span<span style="font-size:15pt">Inside Span' +
|
177
|
+
'</span></a></span>';
|
178
|
+
|
179
|
+
anchor = document.getElementById('link');
|
180
|
+
goog.dom.Range.createFromNodeContents(anchor).select();
|
181
|
+
|
182
|
+
expectedFailures.run(function() {
|
183
|
+
FORMATTER.removeFormatting_();
|
184
|
+
assertHTMLEquals('link should not be removed',
|
185
|
+
'FooPre<a href="http://www.google.com/">Outside SpanInside Span</a>',
|
186
|
+
div.innerHTML);
|
187
|
+
});
|
188
|
+
}
|
189
|
+
|
190
|
+
/**
|
191
|
+
* A short formatting removal function for use with the RemoveFormatting
|
192
|
+
* plugin. Does enough that we can tell this function was run over the
|
193
|
+
* document.
|
194
|
+
* @param {string} text The HTML in from the document.
|
195
|
+
* @return {string} The "cleaned" HTML out.
|
196
|
+
*/
|
197
|
+
function replacementFormattingFunc(text) {
|
198
|
+
// Really basic so that we can just see this is executing.
|
199
|
+
return text.replace(/Foo/gi,'Bar').replace(/<[\/]*span[^>]*>/gi,'');
|
200
|
+
}
|
201
|
+
|
202
|
+
function testAlternateRemoveFormattingFunction() {
|
203
|
+
var div = document.getElementById('html');
|
204
|
+
div.innerHTML = 'Start<span id="remFormat">Foo<pre>Bar</pre>Baz</span>';
|
205
|
+
|
206
|
+
FORMATTER.setRemoveFormattingFunc(replacementFormattingFunc);
|
207
|
+
var area = document.getElementById('remFormat');
|
208
|
+
goog.dom.Range.createFromNodeContents(area).select();
|
209
|
+
FORMATTER.removeFormatting_();
|
210
|
+
// Webkit will change all tags to non-formatted ones anyway.
|
211
|
+
// Make sure 'Foo' was changed to 'Bar'
|
212
|
+
if (goog.userAgent.WEBKIT) {
|
213
|
+
assertHTMLEquals('regular cleaner should not have run',
|
214
|
+
'StartBar<br>Bar<br>Baz',
|
215
|
+
div.innerHTML);
|
216
|
+
} else {
|
217
|
+
assertHTMLEquals('regular cleaner should not have run',
|
218
|
+
'StartBar<pre>Bar</pre>Baz',
|
219
|
+
div.innerHTML);
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
function testGetValueForNode() {
|
224
|
+
// Override getValueForNode to keep bold tags.
|
225
|
+
var oldGetValue =
|
226
|
+
goog.editor.plugins.RemoveFormatting.prototype.getValueForNode;
|
227
|
+
goog.editor.plugins.RemoveFormatting.prototype.getValueForNode =
|
228
|
+
function(node) {
|
229
|
+
if (node.nodeName == goog.dom.TagName.B) {
|
230
|
+
return '<b>' + this.removeFormattingWorker_(node.innerHTML) + '</b>';
|
231
|
+
}
|
232
|
+
return null;
|
233
|
+
}
|
234
|
+
|
235
|
+
var html = FORMATTER.removeFormattingWorker_('<div>foo<b>bar</b></div>');
|
236
|
+
assertHTMLEquals('B tags should remain','foo<b>bar</b>', html);
|
237
|
+
|
238
|
+
// Override getValueForNode to throw out bold tags, and their contents.
|
239
|
+
goog.editor.plugins.RemoveFormatting.prototype.getValueForNode =
|
240
|
+
function(node) {
|
241
|
+
if (node.nodeName == goog.dom.TagName.B) {
|
242
|
+
return '';
|
243
|
+
}
|
244
|
+
return null;
|
245
|
+
}
|
246
|
+
|
247
|
+
html = FORMATTER.removeFormattingWorker_('<div>foo<b>bar</b></div>');
|
248
|
+
assertHTMLEquals('B tag and its contents should be removed', 'foo', html);
|
249
|
+
|
250
|
+
FIELDMOCK.$verify();
|
251
|
+
goog.editor.plugins.RemoveFormatting.prototype.getValueForNode =
|
252
|
+
oldGetValue;
|
253
|
+
}
|
254
|
+
|
255
|
+
function testRemoveFormattingAddsNoNbsps() {
|
256
|
+
var div = document.getElementById('html');
|
257
|
+
div.innerHTML = '"<span id="toStrip">Twin <b>Cinema</b></span>"';
|
258
|
+
|
259
|
+
var span = document.getElementById('toStrip');
|
260
|
+
goog.dom.Range.createFromNodeContents(span).select();
|
261
|
+
|
262
|
+
FORMATTER.removeFormatting_();
|
263
|
+
|
264
|
+
assertEquals('Text should be the same, with no non-breaking spaces',
|
265
|
+
'"Twin Cinema"', div.innerHTML);
|
266
|
+
|
267
|
+
FIELDMOCK.$verify();
|
268
|
+
}
|
269
|
+
|
270
|
+
/**
|
271
|
+
* @bug 992795
|
272
|
+
*/
|
273
|
+
function testRemoveFormattingNestedDivs() {
|
274
|
+
var html = FORMATTER.removeFormattingWorker_(
|
275
|
+
'<div>1</div><div><div>2</div></div>');
|
276
|
+
|
277
|
+
goog.testing.dom.assertHtmlMatches('1<br>2', html);
|
278
|
+
}
|
279
|
+
|
280
|
+
/**
|
281
|
+
* Test that when we perform remove formatting on an entire table,
|
282
|
+
* that the visual look is similiar to as if there was a table there.
|
283
|
+
*/
|
284
|
+
function testRemoveFormattingForTableFormatting() {
|
285
|
+
// We preserve the table formatting as much as possible.
|
286
|
+
// Spaces separate TD's, <br>'s separate TR's.
|
287
|
+
// <br>'s separate the start and end of a table.
|
288
|
+
var html = '<table><tr><td>cell00</td><td>cell01</td></tr>' +
|
289
|
+
'<tr><td>cell10</td><td>cell11</td></tr></table>';
|
290
|
+
html = FORMATTER.removeFormattingWorker_(html)
|
291
|
+
assertHTMLEquals("<br>cell00 cell01<br>cell10 cell11<br>", html);
|
292
|
+
}
|
293
|
+
|
294
|
+
/**
|
295
|
+
* @bug 1319715
|
296
|
+
*/
|
297
|
+
function testRemoveFormattingDoesNotShrinkSelection() {
|
298
|
+
var div = document.getElementById('html');
|
299
|
+
div.innerHTML = "<div>l </div><div><br><b>a</b>foo bar</div>";
|
300
|
+
var div2 = div.lastChild;
|
301
|
+
|
302
|
+
goog.dom.Range.createFromNodes(div2.firstChild, 0,
|
303
|
+
div2.lastChild, 7).select();
|
304
|
+
|
305
|
+
FORMATTER.removeFormatting_();
|
306
|
+
|
307
|
+
var range = goog.dom.Range.createFromWindow();
|
308
|
+
assertEquals('Correct text should be selected', 'afoo bar',
|
309
|
+
range.getText());
|
310
|
+
|
311
|
+
// We have to trim out the leading BR in IE due to execCommand issues,
|
312
|
+
// so it isn't sent off to the removeFormattingWorker.
|
313
|
+
// Workaround for broken removeFormat in old webkit added an extra
|
314
|
+
// <br> to the end of the html.
|
315
|
+
var html = '<div>l </div><br class="GECKO WEBKIT">afoo bar' +
|
316
|
+
(goog.editor.BrowserFeature.ADDS_NBSPS_IN_REMOVE_FORMAT ? '<br>' : '');
|
317
|
+
|
318
|
+
goog.testing.dom.assertHtmlContentsMatch(html, div);
|
319
|
+
FIELDMOCK.$verify();
|
320
|
+
}
|
321
|
+
|
322
|
+
|
323
|
+
/**
|
324
|
+
* @bug 1447374
|
325
|
+
*/
|
326
|
+
function testInsideListRemoveFormat() {
|
327
|
+
var div = document.getElementById('html');
|
328
|
+
div.innerHTML = "<ul><li>one</li><li><b>two</b></li><li>three</li></ul>";
|
329
|
+
|
330
|
+
var twoLi = div.firstChild.childNodes[1];
|
331
|
+
goog.dom.Range.createFromNodeContents(twoLi).select();
|
332
|
+
|
333
|
+
expectedFailures.expectFailureFor(goog.userAgent.IE,
|
334
|
+
'IE adds the "two" to the "three" li, and leaves empty B tags.');
|
335
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
336
|
+
'WebKit leave the "two" orphaned outside of an li but ' +
|
337
|
+
'inside the ul (invalid HTML).');
|
338
|
+
|
339
|
+
expectedFailures.run(function() {
|
340
|
+
FORMATTER.removeFormatting_();
|
341
|
+
// Test that we split the list.
|
342
|
+
assertHTMLEquals("<ul><li>one</li></ul><br>two<ul><li>three</li></ul>",
|
343
|
+
div.innerHTML);
|
344
|
+
FIELDMOCK.$verify();
|
345
|
+
});
|
346
|
+
}
|
347
|
+
|
348
|
+
function testFullListRemoveFormat() {
|
349
|
+
var div = document.getElementById('html');
|
350
|
+
div.innerHTML =
|
351
|
+
"<ul><li>one</li><li><b>two</b></li><li>three</li></ul>after";
|
352
|
+
|
353
|
+
goog.dom.Range.createFromNodeContents(div.firstChild).select();
|
354
|
+
|
355
|
+
// Note: This may just be a createFromNodeContents issue, as
|
356
|
+
// I can't ever make this happen with real user selection.
|
357
|
+
expectedFailures.expectFailureFor(goog.userAgent.IE,
|
358
|
+
'IE combines everything into a single LI and leaves the UL.');
|
359
|
+
|
360
|
+
expectedFailures.run(function() {
|
361
|
+
FORMATTER.removeFormatting_();
|
362
|
+
// Test that we completely remove the list.
|
363
|
+
assertHTMLEquals("<br>one<br>two<br>threeafter",
|
364
|
+
div.innerHTML);
|
365
|
+
FIELDMOCK.$verify();
|
366
|
+
});
|
367
|
+
}
|
368
|
+
|
369
|
+
/**
|
370
|
+
* @bug 1440935
|
371
|
+
*/
|
372
|
+
function testPartialListRemoveFormat() {
|
373
|
+
var div = document.getElementById('html');
|
374
|
+
div.innerHTML =
|
375
|
+
"<ul><li>one</li><li>two</li><li>three</li></ul>after";
|
376
|
+
|
377
|
+
// Select "two three after".
|
378
|
+
goog.dom.Range.createFromNodes(div.firstChild.childNodes[1], 0,
|
379
|
+
div.lastChild, 5).select();
|
380
|
+
|
381
|
+
expectedFailures.expectFailureFor(goog.userAgent.IE,
|
382
|
+
'IE leaves behind an empty LI.');
|
383
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
384
|
+
'WebKit completely loses the "one".');
|
385
|
+
|
386
|
+
expectedFailures.run(function() {
|
387
|
+
FORMATTER.removeFormatting_();
|
388
|
+
// Test that we leave the list start alone.
|
389
|
+
assertHTMLEquals("<ul><li>one</li></ul><br>two<br>threeafter",
|
390
|
+
div.innerHTML);
|
391
|
+
FIELDMOCK.$verify();
|
392
|
+
});
|
393
|
+
}
|
394
|
+
|
395
|
+
function testBasicRemoveFormatting() {
|
396
|
+
// IE will clobber the editable div.
|
397
|
+
// Note: I can't repro this using normal user selections.
|
398
|
+
if (goog.userAgent.IE) {
|
399
|
+
return;
|
400
|
+
}
|
401
|
+
var div = document.getElementById('html');
|
402
|
+
div.innerHTML = "<b>bold<i>italic</i></b>";
|
403
|
+
|
404
|
+
goog.dom.Range.createFromNodeContents(div).select();
|
405
|
+
|
406
|
+
expectedFailures.expectFailureFor(
|
407
|
+
goog.editor.BrowserFeature.ADDS_NBSPS_IN_REMOVE_FORMAT,
|
408
|
+
'The workaround for the nbsp bug adds an extra br at the end.');
|
409
|
+
|
410
|
+
expectedFailures.run(function() {
|
411
|
+
FORMATTER.removeFormatting_();
|
412
|
+
assertHTMLEquals("bolditalic",
|
413
|
+
div.innerHTML);
|
414
|
+
FIELDMOCK.$verify();
|
415
|
+
});
|
416
|
+
}
|
417
|
+
|
418
|
+
/**
|
419
|
+
* @bug 1480260
|
420
|
+
*/
|
421
|
+
function testPartialBasicRemoveFormatting() {
|
422
|
+
var div = document.getElementById('html');
|
423
|
+
div.innerHTML = "<b>bold<i>italic</i></b>";
|
424
|
+
|
425
|
+
goog.dom.Range.createFromNodes(div.firstChild.firstChild, 2,
|
426
|
+
div.firstChild.lastChild.firstChild, 3).select();
|
427
|
+
|
428
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
429
|
+
'WebKit just gets this all wrong. Everything stays bold and ' +
|
430
|
+
'"lditalic" gets italicised.');
|
431
|
+
|
432
|
+
expectedFailures.run(function() {
|
433
|
+
FORMATTER.removeFormatting_();
|
434
|
+
assertHTMLEquals("<b>bo</b>ldita<b><i>lic</i></b>",
|
435
|
+
div.innerHTML);
|
436
|
+
FIELDMOCK.$verify();
|
437
|
+
});
|
438
|
+
}
|
439
|
+
|
440
|
+
/**
|
441
|
+
* @bug 3075557
|
442
|
+
*/
|
443
|
+
function testRemoveFormattingLinkedImageBorderZero() {
|
444
|
+
var testHtml = '<a href="http://www.google.com/">' +
|
445
|
+
'<img src="http://www.google.com/images/logo.gif" border="0"></a>';
|
446
|
+
var div = document.getElementById('html');
|
447
|
+
div.innerHTML = testHtml + controlHtml;
|
448
|
+
goog.dom.Range.createFromNodeContents(div).select();
|
449
|
+
FORMATTER.removeFormatting_();
|
450
|
+
|
451
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
452
|
+
'WebKit removes the image entirely, see ' +
|
453
|
+
'https://bugs.webkit.org/show_bug.cgi?id=13125 .');
|
454
|
+
|
455
|
+
expectedFailures.run(function() {
|
456
|
+
assertHTMLEquals(
|
457
|
+
'Image\'s border=0 should not be removed during remove formatting',
|
458
|
+
testHtml + controlCleanHtml, div.innerHTML);
|
459
|
+
FIELDMOCK.$verify();
|
460
|
+
});
|
461
|
+
}
|
462
|
+
|
463
|
+
/**
|
464
|
+
* @bug 3075557
|
465
|
+
*/
|
466
|
+
function testRemoveFormattingLinkedImageBorderNonzero() {
|
467
|
+
var testHtml = '<a href="http://www.google.com/">' +
|
468
|
+
'<img src="http://www.google.com/images/logo.gif" border="1"></a>';
|
469
|
+
var div = document.getElementById('html');
|
470
|
+
div.innerHTML = testHtml + controlHtml;
|
471
|
+
goog.dom.Range.createFromNodeContents(div).select();
|
472
|
+
FORMATTER.removeFormatting_();
|
473
|
+
|
474
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
475
|
+
'WebKit removes the image entirely, see ' +
|
476
|
+
'https://bugs.webkit.org/show_bug.cgi?id=13125 .');
|
477
|
+
|
478
|
+
expectedFailures.run(function() {
|
479
|
+
assertHTMLEquals(
|
480
|
+
'Image\'s border should be removed during remove formatting' +
|
481
|
+
' if non-zero',
|
482
|
+
testHtml.replace(' border="1"', '') + controlCleanHtml,
|
483
|
+
div.innerHTML);
|
484
|
+
FIELDMOCK.$verify();
|
485
|
+
});
|
486
|
+
}
|
487
|
+
|
488
|
+
/**
|
489
|
+
* @bug 3075557
|
490
|
+
*/
|
491
|
+
function testRemoveFormattingUnlinkedImage() {
|
492
|
+
var testHtml =
|
493
|
+
'<img src="http://www.google.com/images/logo.gif" border="0">';
|
494
|
+
var div = document.getElementById('html');
|
495
|
+
div.innerHTML = testHtml + controlHtml;
|
496
|
+
goog.dom.Range.createFromNodeContents(div).select();
|
497
|
+
FORMATTER.removeFormatting_();
|
498
|
+
|
499
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
500
|
+
'WebKit removes the image entirely, see ' +
|
501
|
+
'https://bugs.webkit.org/show_bug.cgi?id=13125 .');
|
502
|
+
|
503
|
+
expectedFailures.run(function() {
|
504
|
+
assertHTMLEquals(
|
505
|
+
'Image\'s border=0 should not be removed during remove formatting' +
|
506
|
+
' even if not wrapped by a link',
|
507
|
+
testHtml + controlCleanHtml, div.innerHTML);
|
508
|
+
FIELDMOCK.$verify();
|
509
|
+
});
|
510
|
+
}
|
511
|
+
|
512
|
+
/**
|
513
|
+
* @bug 3075557
|
514
|
+
*/
|
515
|
+
function testRemoveFormattingLinkedImageDeep() {
|
516
|
+
var testHtml = '<a href="http://www.google.com/"><b>hello' +
|
517
|
+
'<img src="http://www.google.com/images/logo.gif" border="0">' +
|
518
|
+
'world</b></a>';
|
519
|
+
var div = document.getElementById('html');
|
520
|
+
div.innerHTML = testHtml + controlHtml;
|
521
|
+
goog.dom.Range.createFromNodeContents(div).select();
|
522
|
+
FORMATTER.removeFormatting_();
|
523
|
+
|
524
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
525
|
+
'WebKit removes the image entirely, see ' +
|
526
|
+
'https://bugs.webkit.org/show_bug.cgi?id=13125 .');
|
527
|
+
|
528
|
+
expectedFailures.run(function() {
|
529
|
+
assertHTMLEquals(
|
530
|
+
'Image\'s border=0 should not be removed during remove formatting' +
|
531
|
+
' even if deep inside anchor tag',
|
532
|
+
testHtml.replace(/<\/?b>/g, '') + controlCleanHtml, div.innerHTML);
|
533
|
+
FIELDMOCK.$verify();
|
534
|
+
});
|
535
|
+
}
|
536
|
+
|
537
|
+
function testFullTableRemoveFormatting() {
|
538
|
+
// Something goes horrible wrong in case 1 below. It was crashing all
|
539
|
+
// WebKit browsers, and now seems to be giving errors as it is trying
|
540
|
+
// to perform remove formatting on the little expected failures window
|
541
|
+
// instead of the dom we select. WTF. Since I'm gutting this code,
|
542
|
+
// I'm not going to look into this anymore right now. For what its worth,
|
543
|
+
// I can't repro any issues in standalone TrogEdit.
|
544
|
+
if (goog.userAgent.WEBKIT) {
|
545
|
+
return;
|
546
|
+
}
|
547
|
+
|
548
|
+
var div = document.getElementById('html');
|
549
|
+
|
550
|
+
// WebKit has an extra BR in case 2.
|
551
|
+
expectedFailures.expectFailureFor(goog.userAgent.IE,
|
552
|
+
'IE clobbers the editable node in case 2 (can\'t repro with real ' +
|
553
|
+
'user selections). IE doesn\'t remove the table in case 1.');
|
554
|
+
|
555
|
+
expectedFailures.run(function() {
|
556
|
+
|
557
|
+
// When a full table is selected, we remove it completely.
|
558
|
+
div.innerHTML = "foo<table><tr><td>bar</td></tr></table>baz1";
|
559
|
+
goog.dom.Range.createFromNodeContents(div.childNodes[1]).select();
|
560
|
+
FORMATTER.removeFormatting_();
|
561
|
+
assertHTMLEquals("foo<br>bar<br>baz1", div.innerHTML);
|
562
|
+
FIELDMOCK.$verify();
|
563
|
+
|
564
|
+
// Remove the full table when it is selected with additional
|
565
|
+
// contents too.
|
566
|
+
div.innerHTML = "foo<table><tr><td>bar</td></tr></table>baz2";
|
567
|
+
goog.dom.Range.createFromNodes(div.firstChild, 0,
|
568
|
+
div.lastChild, 1).select();
|
569
|
+
FORMATTER.removeFormatting_();
|
570
|
+
assertHTMLEquals("foo<br>bar<br>baz2", div.innerHTML);
|
571
|
+
FIELDMOCK.$verify();
|
572
|
+
|
573
|
+
// We should still remove the table, even if the selection is inside the
|
574
|
+
// table and it is fully selected.
|
575
|
+
div.innerHTML = "foo<table><tr><td id='td'>bar</td></tr></table>baz3";
|
576
|
+
goog.dom.Range.createFromNodeContents(
|
577
|
+
goog.dom.getElement('td').firstChild).select();
|
578
|
+
FORMATTER.removeFormatting_();
|
579
|
+
assertHTMLEquals("foo<br>bar<br>baz3", div.innerHTML);
|
580
|
+
FIELDMOCK.$verify();
|
581
|
+
});
|
582
|
+
}
|
583
|
+
|
584
|
+
function testInsideTableRemoveFormatting() {
|
585
|
+
var div = document.getElementById('html');
|
586
|
+
div.innerHTML =
|
587
|
+
"<table><tr><td><b id='b'>foo</b></td></tr><tr><td>ba</td></tr></table>";
|
588
|
+
|
589
|
+
goog.dom.Range.createFromNodeContents(goog.dom.getElement('b')).select();
|
590
|
+
|
591
|
+
// Webkit adds some apple style span crap during execCommand("removeFormat")
|
592
|
+
// Our workaround for the nbsp bug removes these, but causes worse problems.
|
593
|
+
// See bugs.webkit.org/show_bug.cgi?id=29164 for more details.
|
594
|
+
expectedFailures.expectFailureFor(
|
595
|
+
goog.userAgent.WEBKIT &&
|
596
|
+
!goog.editor.BrowserFeature.ADDS_NBSPS_IN_REMOVE_FORMAT,
|
597
|
+
'Extra apple-style-spans');
|
598
|
+
|
599
|
+
expectedFailures.run(function() {
|
600
|
+
FORMATTER.removeFormatting_();
|
601
|
+
|
602
|
+
// Only remove styling from inside tables.
|
603
|
+
assertHTMLEquals(
|
604
|
+
"<table><tr><td>foo</td></tr><tr><td>ba</td></tr></table>",
|
605
|
+
div.innerHTML);
|
606
|
+
FIELDMOCK.$verify();
|
607
|
+
});
|
608
|
+
|
609
|
+
}
|
610
|
+
|
611
|
+
function testPartialTableRemoveFormatting() {
|
612
|
+
if (goog.userAgent.IE) {
|
613
|
+
// IE returns an "unspecified error" which seems to be beyond
|
614
|
+
// ExpectedFailures' ability to catch.
|
615
|
+
return;
|
616
|
+
}
|
617
|
+
|
618
|
+
var div = document.getElementById('html');
|
619
|
+
div.innerHTML = "bar<table><tr><td><b id='b'>foo</b></td></tr>" +
|
620
|
+
"<tr><td><i>banana</i></td></tr></table><div id='baz'>" +
|
621
|
+
"baz</div>";
|
622
|
+
|
623
|
+
// Select from the "oo" inside the b tag to the end of "baz".
|
624
|
+
goog.dom.Range.createFromNodes(goog.dom.getElement('b').firstChild, 1,
|
625
|
+
goog.dom.getElement('baz').firstChild, 3).select();
|
626
|
+
|
627
|
+
// All browsers currently clobber the table cells that are selected.
|
628
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT);
|
629
|
+
|
630
|
+
expectedFailures.run(function() {
|
631
|
+
FORMATTER.removeFormatting_();
|
632
|
+
// Only remove styling from inside tables.
|
633
|
+
assertHTMLEquals("bar<table><tr><td><b id='b'>f</b>oo</td></tr>" +
|
634
|
+
"<tr><td>banana</td></tr></table>baz", div.innerHTML);
|
635
|
+
FIELDMOCK.$verify();
|
636
|
+
});
|
637
|
+
}
|
638
|
+
|
639
|
+
// Runs tests knowing some browsers will fail, because the new
|
640
|
+
// table functionality hasn't been implemented in them yet.
|
641
|
+
function runExpectingFailuresForUnimplementedBrowsers(func) {
|
642
|
+
if (goog.userAgent.IE) {
|
643
|
+
// IE returns an "unspecified error" which seems to be beyond
|
644
|
+
// ExpectedFailures' ability to catch.
|
645
|
+
return;
|
646
|
+
}
|
647
|
+
|
648
|
+
expectedFailures.expectFailureFor(goog.userAgent.IE,
|
649
|
+
'Proper behavior not yet implemented for IE.');
|
650
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
651
|
+
'Proper behavior not yet implemented for WebKit.');
|
652
|
+
|
653
|
+
expectedFailures.run(func);
|
654
|
+
}
|
655
|
+
|
656
|
+
|
657
|
+
function testTwoTablesSelectedFullyRemoveFormatting() {
|
658
|
+
runExpectingFailuresForUnimplementedBrowsers(function() {
|
659
|
+
var div = document.getElementById('html');
|
660
|
+
// When two tables are fully selected, we remove them completely.
|
661
|
+
div.innerHTML = '<table><tr><td>foo</td></tr></table>' +
|
662
|
+
'<table><tr><td>bar</td></tr></table>';
|
663
|
+
goog.dom.Range.createFromNodes(div.firstChild, 0,
|
664
|
+
div.lastChild, 1).select();
|
665
|
+
FORMATTER.removeFormatting_();
|
666
|
+
assertHTMLEquals('<br>foo<br><br>bar<br>', div.innerHTML);
|
667
|
+
FIELDMOCK.$verify();
|
668
|
+
});
|
669
|
+
}
|
670
|
+
|
671
|
+
function testTwoTablesSelectedFullyInsideRemoveFormatting() {
|
672
|
+
if (goog.userAgent.WEBKIT) {
|
673
|
+
// Something goes very wrong here, but it did before
|
674
|
+
// Julie started writing v2. Will address when converting
|
675
|
+
// safari to v2.
|
676
|
+
return;
|
677
|
+
}
|
678
|
+
|
679
|
+
runExpectingFailuresForUnimplementedBrowsers(function() {
|
680
|
+
var div = document.getElementById('html');
|
681
|
+
// When two tables are selected from inside but fully,
|
682
|
+
// also remove them completely.
|
683
|
+
div.innerHTML = '<table><tr><td id="td1">foo</td></tr></table>' +
|
684
|
+
'<table><tr><td id="td2">bar</td></tr></table>';
|
685
|
+
goog.dom.Range.createFromNodes(goog.dom.getElement("td1").firstChild, 0,
|
686
|
+
goog.dom.getElement("td2").firstChild, 3).select();
|
687
|
+
FORMATTER.removeFormatting_();
|
688
|
+
assertHTMLEquals('<br>foo<br><br>bar<br>', div.innerHTML);
|
689
|
+
FIELDMOCK.$verify();
|
690
|
+
});
|
691
|
+
}
|
692
|
+
|
693
|
+
function testTwoTablesSelectedFullyAndPartiallyRemoveFormatting() {
|
694
|
+
runExpectingFailuresForUnimplementedBrowsers(function() {
|
695
|
+
var div = document.getElementById('html');
|
696
|
+
// Two tables selected, one fully, one partially. Remove
|
697
|
+
// only the fully selected one and remove styles only from
|
698
|
+
// partially selected one.
|
699
|
+
div.innerHTML = '<table><tr><td id="td1">foo</td></tr></table>' +
|
700
|
+
'<table><tr><td id="td2"><b>bar<b></td></tr></table>';
|
701
|
+
goog.dom.Range.createFromNodes(goog.dom.getElement("td1").firstChild, 0,
|
702
|
+
goog.dom.getElement("td2").firstChild.firstChild, 2).select();
|
703
|
+
FORMATTER.removeFormatting_();
|
704
|
+
assertHTMLEquals('<br>foo<br>' +
|
705
|
+
'<table><tr><td id="td2">ba<b>r</b></td></tr></table>',
|
706
|
+
div.innerHTML);
|
707
|
+
FIELDMOCK.$verify();
|
708
|
+
});
|
709
|
+
}
|
710
|
+
|
711
|
+
function testTwoTablesSelectedPartiallyRemoveFormatting() {
|
712
|
+
runExpectingFailuresForUnimplementedBrowsers(function() {
|
713
|
+
var div = document.getElementById('html');
|
714
|
+
// Two tables selected, both partially. Don't remove tables,
|
715
|
+
// but remove styles.
|
716
|
+
div.innerHTML = '<table><tr><td id="td1">f<i>o</i>o</td></tr></table>' +
|
717
|
+
'<table><tr><td id="td2">b<b>a</b>r</td></tr></table>';
|
718
|
+
goog.dom.Range.createFromNodes(goog.dom.getElement("td1").firstChild, 1,
|
719
|
+
goog.dom.getElement("td2").childNodes[1], 1).select();
|
720
|
+
FORMATTER.removeFormatting_();
|
721
|
+
assertHTMLEquals('<table><tr><td id="td1">foo</td></tr></table>' +
|
722
|
+
'<table><tr><td id="td2">bar</td></tr></table>',
|
723
|
+
div.innerHTML);
|
724
|
+
FIELDMOCK.$verify();
|
725
|
+
});
|
726
|
+
}
|
727
|
+
|
728
|
+
|
729
|
+
/**
|
730
|
+
* Test a random snippet from Google News (Google News has complicated
|
731
|
+
* dom structure, including tables, links, images, etc).
|
732
|
+
*/
|
733
|
+
function testRandomGoogleNewsSnippetRemoveFormatting() {
|
734
|
+
if (goog.userAgent.IE) {
|
735
|
+
// IE returns an "unspecified error" which seems to be beyond
|
736
|
+
// ExpectedFailures' ability to catch.
|
737
|
+
return;
|
738
|
+
}
|
739
|
+
|
740
|
+
var div = document.getElementById('html');
|
741
|
+
div.innerHTML =
|
742
|
+
'<font size="-3"><br></font><table align="right" border="0" ' +
|
743
|
+
'cellpadding="0" cellspacing="0"><tbody><tr><td style="padding-left:' +
|
744
|
+
'6px;" valign="top" width="80" align="center"><a href="http://www.wash' +
|
745
|
+
'ingtonpost.com/wp-dyn/content/article/2008/11/11/AR2008111101090.htm' +
|
746
|
+
'l" + id="s-skHRvWH7ryqkcA4caGv0QQ:u-AFQjCNG3vx1HJOxKxMQPzCvYOVRE0JUDe' +
|
747
|
+
'Q:r-1-0i_1268233361_6_H0_MH20_PL60"><img src="http://news.google.com/' +
|
748
|
+
'news?imgefp=4LFiNNP62TgJ&imgurl=media3.washingtonpost.com/wp-dyn/' +
|
749
|
+
'content/photo/2008/11/11/PH2008111101091.jpg" alt="" width="60" ' +
|
750
|
+
'border="1" height="80"><br><font size="-2">Washington Post</font></a>' +
|
751
|
+
'</td></tr></tbody></table><a href="http://www.nme.com/news/britney-' +
|
752
|
+
'spears/40995" id="s-xZUO-t0c1IpsVjyJj0rgxw:u-AFQjCNEZAMQCseEW6uTgXI' +
|
753
|
+
'iPvAMHe_0B4A:r-1-0_1268233361_6_H0_MH20_PL60"><b>Britney\'s son ' +
|
754
|
+
'released from hospital</b></a><br><font size="-1"><b><font color=' +
|
755
|
+
'"#6f6f6f">NME.com -</font> <nobr>53 minutes ago</nobr></b>' +
|
756
|
+
'</font><br><font size="-1">Britney Spears� youngest son Jayden James ' +
|
757
|
+
'has been released from hospital, having been admitted on Sunday after' +
|
758
|
+
' suffering a severe reaction to something he ingested.</font><br><fon' +
|
759
|
+
'tsize="-1"><a href="http://www.celebrity-gossip.net/celebrities/holly' +
|
760
|
+
'wood/britney-and-jamie-lynn-spears-alligator-alley-208944/" id="s-nM' +
|
761
|
+
'PzHclcMG0J2WZkw9gnVQ:u-AFQjCNHal08usOQ5e5CAQsck2yGsTYeGVQ">Britney ' +
|
762
|
+
'and Jamie Lynn Spears: Alligator Alley!</a> <font size="-1" color=' +
|
763
|
+
'"#6f6f6f"><nobr>The Gossip Girls</nobr></font></font><br><font size=' +
|
764
|
+
'"-1"><a href="http://foodconsumer.org/7777/8888/Other_N_ews_51/111101' +
|
765
|
+
'362008_Allergy_incident_could_spell_custody_trouble_for_Britney_Spear' +
|
766
|
+
's.shtml" id="s-2lMNDY4joOprVvkkY_b-6A:u-AFQjCNGAeFNutMEbSg5zAvrh5reBF' +
|
767
|
+
'lqUmA">Allergy incident could spell trouble for Britney Spears</a> ' +
|
768
|
+
'<font size="-1" color="#6f6f6f"><nobr>Food Consumer</nobr></font>' +
|
769
|
+
'</font><br><font class="p" size="-1"><a href="http://www.people.com/' +
|
770
|
+
'people/article/0,,20239458,00.html" id="s-x9thwVUYVET0ZJOnkkcsjw:u-A' +
|
771
|
+
'FQjCNE99eijVIrezr9AFRjLkmo5j_Jr7A"><nobr>People Magazine</nobr></a>&nb' +
|
772
|
+
'sp;- <a href="http://www.eonline.com/uberblog/b68226_hospital_run_cou' +
|
773
|
+
'ld_cost_britney_custody.html" id="s-kYt5LHDhlDnhUL9kRLuuwA:u-AFQjCNF8' +
|
774
|
+
'8eOy2utriYuF0icNrZQPzwK8gg"><nobr>E! Online</nobr></a> - <a href' +
|
775
|
+
'="http://justjared.buzznet.com/2008/11/11/britney-spears-alligator-fa' +
|
776
|
+
'rm/" id="s--VDy1fyacNvaRo_aXb02Dw:u-AFQjCNEn0Rz3wg0PMwDdzKTDug-9k5W6y' +
|
777
|
+
'g"><nobr>Just Jared</nobr></a> - <a href="http://www.efluxmedia.' +
|
778
|
+
'com/news_Britney_Spears_Son_Released_from_Hospital_28696.html" id="s-' +
|
779
|
+
'8oX6hVDe4Qbcl1x5Rua_EA:u-AFQjCNEpn3nOHA8EB0pxJAPf6diOicMRDg"><nobr>eF' +
|
780
|
+
'luxMedia</nobr></a></font><br><font class="p" size="-1"><a class="p" ' +
|
781
|
+
'href="http://news.google.com/news?ncl=1268233361&hl=en"><nobr><b>' +
|
782
|
+
'all 950 news articles �</b></nobr></a></font>';
|
783
|
+
// Select it all.
|
784
|
+
goog.dom.Range.createFromNodeContents(div).select();
|
785
|
+
|
786
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
787
|
+
'WebKit barfs apple-style-spans all over the place, and removes links.');
|
788
|
+
|
789
|
+
expectedFailures.run(function() {
|
790
|
+
FORMATTER.removeFormatting_();
|
791
|
+
// Leave links and images alone, remove all other formatting.
|
792
|
+
assertHTMLEquals('<br><br><a href="http://www.washingtonpost.com/wp-dyn/' +
|
793
|
+
'content/article/2008/11/11/AR2008111101090.html"><img src="http://n' +
|
794
|
+
'ews.google.com/news?imgefp=4LFiNNP62TgJ&imgurl=media3.washingto' +
|
795
|
+
'npost.com/wp-dyn/content/photo/2008/11/11/PH2008111101091.jpg"><br>' +
|
796
|
+
'Washington Post</a><br><a href="http://www.nme.com/news/britney-spe' +
|
797
|
+
'ars/40995">Britney\'s son released from hospital</a><br>NME.com - 5' +
|
798
|
+
'3 minutes ago<br>Britney Spears� youngest son Jayden James has been' +
|
799
|
+
' released from hospital, having been admitted on Sunday after suffe' +
|
800
|
+
'ring a severe reaction to something he ingested.<br><a href="http:/' +
|
801
|
+
'/www.celebrity-gossip.net/celebrities/hollywood/britney-and-jamie-l' +
|
802
|
+
'ynn-spears-alligator-alley-208944/">Britney and Jamie Lynn Spears: ' +
|
803
|
+
'Alligator Alley!</a> The Gossip Girls<br><a href="http://foodconsum' +
|
804
|
+
'er.org/7777/8888/Other_N_ews_51/111101362008_Allergy_incident_could' +
|
805
|
+
'_spell_custody_trouble_for_Britney_Spears.shtml">Allergy incident c' +
|
806
|
+
'ould spell trouble for Britney Spears</a> Food Consumer<br><a href=' +
|
807
|
+
'"http://www.people.com/people/article/0,,20239458,00.html">People M' +
|
808
|
+
'agazine</a> - <a href="http://www.eonline.com/uberblog/b68226_hospi' +
|
809
|
+
'tal_run_could_cost_britney_custody.html">E! Online</a> - <a href="h' +
|
810
|
+
'ttp://justjared.buzznet.com/2008/11/11/britney-spears-alligator-far' +
|
811
|
+
'm/">Just Jared</a> - <a href="http://www.efluxmedia.com/news_Britne' +
|
812
|
+
'y_Spears_Son_Released_from_Hospital_28696.html">eFluxMedia</a><br><' +
|
813
|
+
'a href="http://news.google.com/news?ncl=1268233361&hl=en">all 9' +
|
814
|
+
'50 news articles �</a>', div.innerHTML);
|
815
|
+
FIELDMOCK.$verify();
|
816
|
+
});
|
817
|
+
}
|
818
|
+
|
819
|
+
function testRangeDelimitedByRanges() {
|
820
|
+
var abcde = goog.dom.getElement('abcde').firstChild;
|
821
|
+
var start = goog.dom.Range.createFromNodes(abcde, 1, abcde, 2);
|
822
|
+
var end = goog.dom.Range.createFromNodes(abcde, 3, abcde, 4);
|
823
|
+
|
824
|
+
goog.testing.dom.assertRangeEquals(abcde, 1, abcde, 4,
|
825
|
+
goog.editor.plugins.RemoveFormatting.createRangeDelimitedByRanges_(
|
826
|
+
start, end));
|
827
|
+
}
|
828
|
+
|
829
|
+
function testGetTableAncestor() {
|
830
|
+
var div = document.getElementById('html');
|
831
|
+
|
832
|
+
div.innerHTML = "foo<table><tr><td>foo</td></tr></table>bar";
|
833
|
+
assertTrue('Full table is in table',
|
834
|
+
!!goog.editor.plugins.RemoveFormatting.getTableAncestor_(
|
835
|
+
div.childNodes[1]));
|
836
|
+
|
837
|
+
assertFalse('Outside of table',
|
838
|
+
!!goog.editor.plugins.RemoveFormatting.getTableAncestor_(div.firstChild));
|
839
|
+
|
840
|
+
assertTrue('Table cell is in table',
|
841
|
+
!!goog.editor.plugins.RemoveFormatting.getTableAncestor_(
|
842
|
+
div.childNodes[1].firstChild.firstChild.firstChild));
|
843
|
+
|
844
|
+
}
|
845
|
+
|
846
|
+
/**
|
847
|
+
* @bug 1272905
|
848
|
+
*/
|
849
|
+
function testHardReturnsInHeadersPreserved() {
|
850
|
+
var div = document.getElementById('html');
|
851
|
+
div.innerHTML = '<h1>abcd</h1><h2>efgh</h2><h3>ijkl</h3>';
|
852
|
+
|
853
|
+
// Select efgh.
|
854
|
+
goog.dom.Range.createFromNodeContents(div.childNodes[1]).select();
|
855
|
+
FORMATTER.removeFormatting_();
|
856
|
+
|
857
|
+
expectedFailures.expectFailureFor(goog.userAgent.IE,
|
858
|
+
'Proper behavior not yet implemented for IE.');
|
859
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
860
|
+
'Proper behavior not yet implemented for WebKit.');
|
861
|
+
expectedFailures.run(function() {
|
862
|
+
assertHTMLEquals("<h1>abcd</h1><br>efgh<h3>ijkl</h3>", div.innerHTML);
|
863
|
+
});
|
864
|
+
|
865
|
+
// Select ijkl.
|
866
|
+
goog.dom.Range.createFromNodeContents(div.lastChild).select();
|
867
|
+
FORMATTER.removeFormatting_();
|
868
|
+
|
869
|
+
expectedFailures.expectFailureFor(goog.userAgent.IE,
|
870
|
+
'Proper behavior not yet implemented for IE.');
|
871
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
872
|
+
'Proper behavior not yet implemented for WebKit.');
|
873
|
+
expectedFailures.run(function() {
|
874
|
+
assertHTMLEquals("<h1>abcd</h1><br>efgh<br>ijkl", div.innerHTML);
|
875
|
+
});
|
876
|
+
|
877
|
+
// Select abcd.
|
878
|
+
goog.dom.Range.createFromNodeContents(div.firstChild).select();
|
879
|
+
FORMATTER.removeFormatting_();
|
880
|
+
|
881
|
+
expectedFailures.expectFailureFor(goog.userAgent.IE,
|
882
|
+
'Proper behavior not yet implemented for IE.');
|
883
|
+
expectedFailures.expectFailureFor(goog.userAgent.WEBKIT,
|
884
|
+
'Proper behavior not yet implemented for WebKit.');
|
885
|
+
expectedFailures.run(function() {
|
886
|
+
assertHTMLEquals("<br>abcd<br>efgh<br>ijkl", div.innerHTML);
|
887
|
+
});
|
888
|
+
}
|
889
|
+
|
890
|
+
function testKeyboardShortcut_space() {
|
891
|
+
FIELDMOCK.$reset();
|
892
|
+
|
893
|
+
FIELDMOCK.execCommand(
|
894
|
+
goog.editor.plugins.RemoveFormatting.REMOVE_FORMATTING_COMMAND);
|
895
|
+
|
896
|
+
FIELDMOCK.$replay();
|
897
|
+
|
898
|
+
var e = {};
|
899
|
+
var key = ' ';
|
900
|
+
var result = FORMATTER.handleKeyboardShortcut(e, key, true);
|
901
|
+
assertTrue(result);
|
902
|
+
|
903
|
+
FIELDMOCK.$verify();
|
904
|
+
}
|
905
|
+
|
906
|
+
function testKeyboardShortcut_other() {
|
907
|
+
FIELDMOCK.$reset();
|
908
|
+
FIELDMOCK.$replay();
|
909
|
+
|
910
|
+
var e = {};
|
911
|
+
var key = 'a';
|
912
|
+
var result = FORMATTER.handleKeyboardShortcut(e, key, true);
|
913
|
+
assertFalse(result);
|
914
|
+
|
915
|
+
FIELDMOCK.$verify();
|
916
|
+
}
|
917
|
+
|
918
|
+
</script>
|
919
|
+
</body>
|
920
|
+
</html>
|