├── test ├── baidu │ ├── ui │ │ ├── Dialog │ │ │ ├── test.swf │ │ │ ├── blank.html │ │ │ ├── img │ │ │ │ ├── bg1.gif │ │ │ │ ├── close.gif │ │ │ │ └── resize.gif │ │ │ ├── css │ │ │ │ └── reset.css │ │ │ ├── flash │ │ │ │ └── test_flash.swf │ │ │ ├── tools.js │ │ │ ├── Dialog$alert.js │ │ │ ├── Dialog$closeButton.js │ │ │ ├── Dialog$iframe.js │ │ │ ├── Dialog$autoDispose.js │ │ │ ├── Dialog$smartCover.js │ │ │ └── test.html │ │ ├── Login │ │ │ ├── respReg.js │ │ │ ├── img │ │ │ │ ├── bg1.gif │ │ │ │ ├── close.gif │ │ │ │ └── resize.gif │ │ │ ├── css │ │ │ │ └── reset.css │ │ │ ├── resp.php │ │ │ ├── registerResult.php │ │ │ ├── loginResult.php │ │ │ └── Login.php │ │ ├── Suggestion │ │ │ ├── php │ │ │ │ └── suggestion.php │ │ │ ├── ForTest.swf │ │ │ ├── Coffee Bean.bmp │ │ │ ├── flash │ │ │ │ └── test_flash.swf │ │ │ ├── main.css │ │ │ ├── tools.js │ │ │ ├── create.js │ │ │ └── test.html │ │ ├── Table │ │ │ ├── css │ │ │ │ ├── style.css │ │ │ │ └── table.css │ │ │ ├── style.css │ │ │ └── tools.js │ │ ├── smartPosition │ │ │ ├── data │ │ │ │ └── blank.html │ │ │ ├── set.js │ │ │ ├── mouse.js │ │ │ ├── test.html │ │ │ └── tools.js │ │ ├── Toolbar │ │ │ ├── icons.gif │ │ │ ├── button_bg.png │ │ │ ├── sprites_btn_b.png │ │ │ ├── tools.js │ │ │ ├── manual.css │ │ │ └── test.html │ │ ├── Tree │ │ │ ├── image │ │ │ │ ├── I.png │ │ │ │ ├── L.png │ │ │ │ ├── T.png │ │ │ │ ├── s.gif │ │ │ │ ├── file.png │ │ │ │ ├── plus.gif │ │ │ │ ├── Lminus.png │ │ │ │ ├── Lplus.png │ │ │ │ ├── Tminus.png │ │ │ │ ├── Tplus.png │ │ │ │ ├── blank.png │ │ │ │ ├── folder.gif │ │ │ │ ├── minus.gif │ │ │ │ └── folderopen.gif │ │ │ ├── extimage │ │ │ │ ├── file.png │ │ │ │ ├── leaf.gif │ │ │ │ ├── plus.gif │ │ │ │ ├── blank.png │ │ │ │ ├── elbow.gif │ │ │ │ ├── folder.gif │ │ │ │ ├── checkbox.gif │ │ │ │ ├── elbow-end.gif │ │ │ │ ├── elbow-line.gif │ │ │ │ ├── elbow-minus.gif │ │ │ │ ├── elbow-plus.gif │ │ │ │ ├── folder-open.gif │ │ │ │ ├── checkbox-check.gif │ │ │ │ ├── elbow-end-plus.gif │ │ │ │ ├── elbow-minus-nl.gif │ │ │ │ ├── elbow-plus-nl.gif │ │ │ │ ├── elbow-end-minus.gif │ │ │ │ ├── checkbox-halfcheck.gif │ │ │ │ └── elbow-end-plus-nl.gif │ │ │ └── test.php │ │ ├── Accordion │ │ │ ├── line.gif │ │ │ └── Accordion$fx.js │ │ ├── Combox │ │ │ ├── css │ │ │ │ ├── reset.css │ │ │ │ ├── img │ │ │ │ │ ├── combo_arrow.gif │ │ │ │ │ └── editor-icon.gif │ │ │ │ └── demo.css │ │ │ ├── combox │ │ │ │ └── image │ │ │ │ │ └── combo_arrow.gif │ │ │ ├── form.php │ │ │ ├── select.js │ │ │ └── style.css │ │ ├── Menubar │ │ │ ├── css │ │ │ │ ├── reset.css │ │ │ │ ├── img │ │ │ │ │ ├── ui-bg.png │ │ │ │ │ ├── ui-bg_75.png │ │ │ │ │ ├── ui-icons.png │ │ │ │ │ └── editor-icon.gif │ │ │ │ └── demo.css │ │ │ ├── tools.js │ │ │ ├── Menubar$icon.js │ │ │ ├── hover.js │ │ │ ├── click.js │ │ │ ├── Menubar$hover.js │ │ │ ├── Menubar$click.js │ │ │ └── test.html │ │ ├── Tooltip │ │ │ ├── css │ │ │ │ ├── reset.css │ │ │ │ ├── img │ │ │ │ │ └── editor-icon.gif │ │ │ │ └── demo.css │ │ │ ├── Tooltip$close.js │ │ │ ├── tools.js │ │ │ └── test.html │ │ ├── DatePicker │ │ │ ├── css │ │ │ │ ├── reset.css │ │ │ │ └── demo.css │ │ │ ├── tools.js │ │ │ ├── index.htm │ │ │ └── test.html │ │ ├── ColorPicker │ │ │ ├── css │ │ │ │ └── img │ │ │ │ │ ├── hex.png │ │ │ │ │ ├── close.gif │ │ │ │ │ ├── save.png │ │ │ │ │ ├── slider.png │ │ │ │ │ ├── ui-bg_75.png │ │ │ │ │ ├── custom_hsb_b.png │ │ │ │ │ ├── custom_hsb_h.png │ │ │ │ │ ├── custom_hsb_s.png │ │ │ │ │ ├── custom_rgb_b.png │ │ │ │ │ ├── custom_rgb_g.png │ │ │ │ │ ├── custom_rgb_r.png │ │ │ │ │ ├── colorpicker_indic.gif │ │ │ │ │ ├── colorpicker_select.gif │ │ │ │ │ ├── colorpicker_overlay.png │ │ │ │ │ ├── colorpicker_background.png │ │ │ │ │ └── ui-icons_222222_256x240.png │ │ │ ├── tools.js │ │ │ ├── ColorPicker$more.js │ │ │ ├── ColorPicker$click.js │ │ │ ├── test.html │ │ │ └── manual.html │ │ ├── Modal │ │ │ ├── flash │ │ │ │ └── test_flash.swf │ │ │ ├── tools.js │ │ │ ├── test_data.html │ │ │ ├── test.html │ │ │ └── manual2.html │ │ ├── Popup │ │ │ ├── flash │ │ │ │ └── test_flash.swf │ │ │ ├── Popup$closeButton.js │ │ │ ├── Popup$keyboard.js │ │ │ ├── Popup$smartCover.js │ │ │ ├── test.html │ │ │ └── Popup$modal.js │ │ ├── Carousel │ │ │ ├── mindmap │ │ │ │ ├── Carousel.xmind │ │ │ │ ├── Carousel$table.xmind │ │ │ │ └── Carousel$splice.xmind │ │ │ ├── css │ │ │ │ ├── style.css │ │ │ │ └── slide.css │ │ │ ├── style.css │ │ │ └── Carousel$scrollByPage.js │ │ ├── ScrollBar │ │ │ └── imgs │ │ │ │ ├── scrollbar-h.gif │ │ │ │ └── scrollbar-v.gif │ │ ├── ProgressBar │ │ │ ├── style.css │ │ │ └── tools.js │ │ ├── Button │ │ │ ├── tools.js │ │ │ └── test.html │ │ ├── StarRate │ │ │ ├── starRate.css │ │ │ └── test.html │ │ ├── Input │ │ │ ├── tools.js │ │ │ └── test.html │ │ ├── Slider │ │ │ ├── style.css │ │ │ ├── tools.js │ │ │ └── manual.html │ │ ├── behavior │ │ │ ├── tools.js │ │ │ ├── decorator.js │ │ │ └── testDroppable.html │ │ ├── Tab │ │ │ ├── tools.js │ │ │ └── test.html │ │ ├── Pager │ │ │ └── tools.js │ │ ├── index.html │ │ └── ColorPalette.js │ ├── data │ │ ├── dataSource │ │ │ ├── exist.js │ │ │ ├── get.php │ │ │ ├── tools.js │ │ │ ├── sio.js │ │ │ └── local.js │ │ ├── Validator │ │ │ ├── remote_get.php │ │ │ └── remote_post.php │ │ ├── mindmap │ │ │ ├── baidu.data.DataModel.xmind │ │ │ ├── baidu.data.DataStore.xmind │ │ │ ├── baidu.data.Validator.xmind │ │ │ └── baidu.data.ModelManager.xmind │ │ └── DataStore │ │ │ ├── newbooks.xml │ │ │ ├── books.xml │ │ │ ├── lib.json │ │ │ └── newlib.json │ ├── widget │ │ ├── get.js │ │ ├── load.js │ │ ├── js │ │ │ ├── t7_2.js │ │ │ ├── c.js │ │ │ ├── b.js │ │ │ ├── t9_2.js │ │ │ ├── t6_1.js │ │ │ ├── t6_2.js │ │ │ ├── a.js │ │ │ ├── d.js │ │ │ ├── uibase.js │ │ │ ├── core │ │ │ │ └── log.js │ │ │ ├── t9_1.js │ │ │ ├── t7_1.js │ │ │ └── dialog.js │ │ ├── getPath.js │ │ └── dispose.js │ ├── fx │ │ ├── Coffee_Bean.bmp │ │ ├── uiut │ │ │ ├── app │ │ │ │ ├── img │ │ │ │ │ ├── all.png │ │ │ │ │ ├── logo.gif │ │ │ │ │ ├── pause.png │ │ │ │ │ ├── plus.JPG │ │ │ │ │ ├── step.png │ │ │ │ │ ├── stop.png │ │ │ │ │ ├── continue.png │ │ │ │ │ ├── selected.png │ │ │ │ │ ├── step_disabled.png │ │ │ │ │ └── continue_disabled.png │ │ │ │ └── css │ │ │ │ │ └── framework.css │ │ │ ├── runTests_copy_to_test_folder.html │ │ │ └── help.txt │ │ ├── effect │ │ │ ├── expand_one.js │ │ │ ├── fadeIn_one.js │ │ │ ├── fadeIn_two.js │ │ │ ├── fadeOut_one.js │ │ │ ├── fadeOut_two.js │ │ │ ├── moveBy_one.js │ │ │ ├── moveBy_two.js │ │ │ ├── moveTo_one.js │ │ │ ├── moveTo_two.js │ │ │ ├── collapse_one.js │ │ │ ├── effect_style.js │ │ │ ├── expand_three.js │ │ │ ├── fadeIn_three.js │ │ │ ├── moveBy_three.js │ │ │ ├── moveTo_three.js │ │ │ ├── collapse_three.js │ │ │ ├── fadeOut_three.js │ │ │ ├── highlight_one.js │ │ │ ├── highlight_two.js │ │ │ └── highlight_three.js │ │ ├── collapse_one_run.html │ │ ├── expand_one_run.html │ │ ├── fadeIn_one_run.html │ │ ├── fadeIn_two_run.html │ │ ├── fadeOut_one_run.html │ │ ├── fadeOut_two_run.html │ │ ├── moveBy_one_run.html │ │ ├── moveBy_two_run.html │ │ ├── moveTo_one_run.html │ │ ├── moveTo_two_run.html │ │ ├── collapse_three_run.html │ │ ├── effect_style_run.html │ │ ├── expand_three_run.html │ │ ├── fadeIn_three_run.html │ │ ├── fadeOut_three_run.html │ │ ├── highlight_one_run.html │ │ ├── highlight_two_run.html │ │ ├── moveBy_three_run.html │ │ ├── moveTo_three_run.html │ │ ├── highlight_three_run.html │ │ ├── current.js │ │ ├── remove.js │ │ ├── getTransition.js │ │ └── zoomIn.js │ ├── tools │ │ └── log │ │ │ ├── img │ │ │ ├── close.gif │ │ │ ├── BlockSprites.png │ │ │ └── InlineSprites.png │ │ │ └── test.css │ ├── flash │ │ ├── imageUpload │ │ │ ├── assets │ │ │ │ ├── button.png │ │ │ │ ├── background.png │ │ │ │ └── list_background.png │ │ │ ├── 1.txt │ │ │ └── getfile.php │ │ └── fileUpLoader │ │ │ └── manual.html │ ├── i18n │ │ ├── mindmap │ │ │ ├── baidu.i18n.date.xmind │ │ │ ├── baidu.i18n.number.xmind │ │ │ ├── baidu.i18n.string.xmind │ │ │ └── baidu.i18n.currency.xmind │ │ ├── number.html │ │ └── date.html │ ├── parser │ │ ├── mindmap │ │ │ ├── baidu.parser.Xml.xmind │ │ │ ├── baidu.parser.Json.xmind │ │ │ ├── baidu.parser.Parser.xmind │ │ │ └── baidu.parser.create.xmind │ │ ├── tools.js │ │ ├── Xml │ │ │ ├── books.php │ │ │ └── books.xml │ │ ├── create.js │ │ └── Json │ │ │ ├── lib.json │ │ │ └── lib.php │ ├── history │ │ └── listen │ │ │ └── manual.html │ └── form │ │ ├── request.php │ │ └── manual.html └── tools │ ├── br │ ├── .gitignore │ ├── css │ │ ├── bg_button_a.gif │ │ └── bg_button_span.gif │ ├── lib │ │ ├── jscoverage.exe │ │ └── StafResult.php │ ├── record.php │ ├── geneHistory.php │ ├── smail.php │ ├── run.php │ └── js │ │ └── ext_qunit.js │ ├── test.html │ ├── data │ ├── test.html │ └── frame.php │ └── lib │ └── ant_tangram_ext.jar ├── resources └── baidu │ └── flash │ ├── avatarMaker.swf │ ├── fileUploader.swf │ └── imageUploader.swf ├── src └── baidu │ ├── ui.js │ ├── i18n │ ├── cultures.js │ ├── string.js │ └── cultures │ │ └── zh-CN.js │ ├── i18n.js │ ├── form.js │ ├── fx.js │ ├── data.js │ ├── flash.js │ ├── tools.js │ ├── history.js │ ├── parser.js │ ├── parser │ ├── type.js │ └── create.js │ ├── ui │ ├── behavior.js │ ├── Base │ │ ├── getParent.js │ │ └── setParent.js │ ├── behavior │ │ └── posable │ │ │ ├── setPositionByMouse.js │ │ │ └── setPositionByElement.js │ ├── getUI.js │ ├── create.js │ ├── Suggestion │ │ ├── Suggestion$coverable.js │ │ └── Suggestion$data.js │ ├── Dialog │ │ ├── Dialog$autoDispose.js │ │ ├── Dialog$coverable.js │ │ ├── Dialog$closeButton.js │ │ └── Dialog$modal.js │ ├── Popup │ │ └── Popup$coverable.js │ ├── Modal │ │ └── Modal$coverable.js │ ├── Tooltip │ │ └── Tooltip$close.js │ ├── Combox │ │ ├── Combox$statable.js │ │ └── Combox$select.js │ ├── Menubar │ │ ├── Menubar$icon.js │ │ └── Menubar$fx.js │ ├── get.js │ ├── Button │ │ ├── Button$poll.js │ │ └── Button$capture.js │ ├── getAttribute.js │ ├── Carousel │ │ └── Carousel$btn.js │ └── Toolbar │ │ └── Separator.js │ ├── data │ └── dataSource.js │ ├── widget │ ├── get.js │ ├── getPath.js │ ├── _isWidget.js │ └── dispose.js │ ├── widget.js │ └── fx │ └── current.js └── README /test/baidu/ui/Dialog/test.swf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/baidu/ui/Login/respReg.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/baidu/ui/Suggestion/php/suggestion.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/tools/br/.gitignore: -------------------------------------------------------------------------------- 1 | /report 2 | /report.xml 3 | -------------------------------------------------------------------------------- /test/baidu/data/dataSource/exist.js: -------------------------------------------------------------------------------- 1 | fromBrowser = "百度"; -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/blank.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/tools/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test/baidu/ui/Table/css/style.css: -------------------------------------------------------------------------------- 1 | 2 | td{ 3 | border:solid 1px red; 4 | } -------------------------------------------------------------------------------- /test/baidu/data/Validator/remote_get.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/baidu/data/Validator/remote_post.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/tools/data/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/baidu/ui/smartPosition/data/blank.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/baidu/widget/get.js: -------------------------------------------------------------------------------- 1 | //get test in create 2 | test('test in create', function(){ 3 | ok(true); 4 | }); -------------------------------------------------------------------------------- /test/baidu/widget/load.js: -------------------------------------------------------------------------------- 1 | // load tested in create 2 | test('test in create', function(){ 3 | ok(true); 4 | }); -------------------------------------------------------------------------------- /test/baidu/fx/Coffee_Bean.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/Coffee_Bean.bmp -------------------------------------------------------------------------------- /test/baidu/ui/Login/img/bg1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Login/img/bg1.gif -------------------------------------------------------------------------------- /test/baidu/ui/Toolbar/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Toolbar/icons.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/I.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/I.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/L.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/L.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/T.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/T.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/s.gif -------------------------------------------------------------------------------- /test/baidu/widget/js/t7_2.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create("t7_2", function(r, e) { 2 | e.exec = function(){return 2;}; 3 | }); -------------------------------------------------------------------------------- /test/baidu/ui/Accordion/line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Accordion/line.gif -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/img/bg1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Dialog/img/bg1.gif -------------------------------------------------------------------------------- /test/baidu/ui/Login/css/reset.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Login/css/reset.css -------------------------------------------------------------------------------- /test/baidu/ui/Login/img/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Login/img/close.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/file.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/plus.gif -------------------------------------------------------------------------------- /test/baidu/widget/js/c.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create('c', function(r,e){ 2 | e.c = function(){ 3 | return 'c'; 4 | }; 5 | }); -------------------------------------------------------------------------------- /test/tools/br/css/bg_button_a.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/tools/br/css/bg_button_a.gif -------------------------------------------------------------------------------- /test/tools/br/lib/jscoverage.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/tools/br/lib/jscoverage.exe -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/all.png -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/logo.gif -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/pause.png -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/plus.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/plus.JPG -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/step.png -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/stop.png -------------------------------------------------------------------------------- /test/baidu/tools/log/img/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/tools/log/img/close.gif -------------------------------------------------------------------------------- /test/baidu/ui/Combox/css/reset.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Combox/css/reset.css -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/css/reset.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Dialog/css/reset.css -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/img/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Dialog/img/close.gif -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/img/resize.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Dialog/img/resize.gif -------------------------------------------------------------------------------- /test/baidu/ui/Login/img/resize.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Login/img/resize.gif -------------------------------------------------------------------------------- /test/baidu/ui/Menubar/css/reset.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Menubar/css/reset.css -------------------------------------------------------------------------------- /test/baidu/ui/Suggestion/ForTest.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Suggestion/ForTest.swf -------------------------------------------------------------------------------- /test/baidu/ui/Toolbar/button_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Toolbar/button_bg.png -------------------------------------------------------------------------------- /test/baidu/ui/Tooltip/css/reset.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tooltip/css/reset.css -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/file.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/leaf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/leaf.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/plus.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/Lminus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/Lminus.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/Lplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/Lplus.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/Tminus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/Tminus.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/Tplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/Tplus.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/blank.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/folder.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/minus.gif -------------------------------------------------------------------------------- /test/baidu/widget/js/b.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create("b", function(require, exports){ 2 | exports.b = function(){return 'b';}; 3 | }); -------------------------------------------------------------------------------- /test/tools/br/css/bg_button_span.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/tools/br/css/bg_button_span.gif -------------------------------------------------------------------------------- /test/tools/lib/ant_tangram_ext.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/tools/lib/ant_tangram_ext.jar -------------------------------------------------------------------------------- /resources/baidu/flash/avatarMaker.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/resources/baidu/flash/avatarMaker.swf -------------------------------------------------------------------------------- /resources/baidu/flash/fileUploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/resources/baidu/flash/fileUploader.swf -------------------------------------------------------------------------------- /test/baidu/ui/DatePicker/css/reset.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/DatePicker/css/reset.css -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/blank.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/folder.gif -------------------------------------------------------------------------------- /test/baidu/widget/js/t9_2.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create('t9_2', function(r, e) { 2 | e.exec = function() { 3 | return 2; 4 | }; 5 | }); -------------------------------------------------------------------------------- /resources/baidu/flash/imageUploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/resources/baidu/flash/imageUploader.swf -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/continue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/continue.png -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/selected.png -------------------------------------------------------------------------------- /test/baidu/tools/log/img/BlockSprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/tools/log/img/BlockSprites.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/hex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/hex.png -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/flash/test_flash.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Dialog/flash/test_flash.swf -------------------------------------------------------------------------------- /test/baidu/ui/Menubar/css/img/ui-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Menubar/css/img/ui-bg.png -------------------------------------------------------------------------------- /test/baidu/ui/Modal/flash/test_flash.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Modal/flash/test_flash.swf -------------------------------------------------------------------------------- /test/baidu/ui/Popup/flash/test_flash.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Popup/flash/test_flash.swf -------------------------------------------------------------------------------- /test/baidu/ui/Suggestion/Coffee Bean.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Suggestion/Coffee Bean.bmp -------------------------------------------------------------------------------- /test/baidu/ui/Toolbar/sprites_btn_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Toolbar/sprites_btn_b.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/checkbox.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/checkbox.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-end.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-end.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/image/folderopen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/image/folderopen.gif -------------------------------------------------------------------------------- /src/baidu/ui.js: -------------------------------------------------------------------------------- 1 | ///import baidu; 2 | /** 3 | * 各种页面的UI组件 4 | * @namespace baidu.ui 5 | */ 6 | baidu.ui = baidu.ui || { version: '1.3.9' }; 7 | -------------------------------------------------------------------------------- /test/baidu/tools/log/img/InlineSprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/tools/log/img/InlineSprites.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/close.gif -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/save.png -------------------------------------------------------------------------------- /test/baidu/ui/Menubar/css/img/ui-bg_75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Menubar/css/img/ui-bg_75.png -------------------------------------------------------------------------------- /test/baidu/ui/Menubar/css/img/ui-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Menubar/css/img/ui-icons.png -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-line.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-minus.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-plus.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/folder-open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/folder-open.gif -------------------------------------------------------------------------------- /test/baidu/flash/imageUpload/assets/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/flash/imageUpload/assets/button.png -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/step_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/step_disabled.png -------------------------------------------------------------------------------- /test/baidu/i18n/mindmap/baidu.i18n.date.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/i18n/mindmap/baidu.i18n.date.xmind -------------------------------------------------------------------------------- /test/baidu/ui/Carousel/mindmap/Carousel.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Carousel/mindmap/Carousel.xmind -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/slider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/slider.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/ui-bg_75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/ui-bg_75.png -------------------------------------------------------------------------------- /test/baidu/ui/Combox/css/img/combo_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Combox/css/img/combo_arrow.gif -------------------------------------------------------------------------------- /test/baidu/ui/Combox/css/img/editor-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Combox/css/img/editor-icon.gif -------------------------------------------------------------------------------- /test/baidu/ui/Menubar/css/img/editor-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Menubar/css/img/editor-icon.gif -------------------------------------------------------------------------------- /test/baidu/ui/ScrollBar/imgs/scrollbar-h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ScrollBar/imgs/scrollbar-h.gif -------------------------------------------------------------------------------- /test/baidu/ui/ScrollBar/imgs/scrollbar-v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ScrollBar/imgs/scrollbar-v.gif -------------------------------------------------------------------------------- /test/baidu/ui/Suggestion/flash/test_flash.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Suggestion/flash/test_flash.swf -------------------------------------------------------------------------------- /test/baidu/ui/Tooltip/css/img/editor-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tooltip/css/img/editor-icon.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/checkbox-check.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/checkbox-check.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-end-plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-end-plus.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-minus-nl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-minus-nl.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-plus-nl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-plus-nl.gif -------------------------------------------------------------------------------- /test/baidu/widget/js/t6_1.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create("t6_1", function(r, e) { 2 | e.exec = r('t6_2').exec; 3 | }, { 4 | depends : [ 't6_2' ] 5 | }); -------------------------------------------------------------------------------- /test/baidu/widget/js/t6_2.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | baidu.widget.create("t6_2", function(r, e) { 5 | e.exec = function(){return "t6_2";}; 6 | }); -------------------------------------------------------------------------------- /test/baidu/fx/uiut/app/img/continue_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/fx/uiut/app/img/continue_disabled.png -------------------------------------------------------------------------------- /test/baidu/i18n/mindmap/baidu.i18n.number.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/i18n/mindmap/baidu.i18n.number.xmind -------------------------------------------------------------------------------- /test/baidu/i18n/mindmap/baidu.i18n.string.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/i18n/mindmap/baidu.i18n.string.xmind -------------------------------------------------------------------------------- /test/baidu/parser/mindmap/baidu.parser.Xml.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/parser/mindmap/baidu.parser.Xml.xmind -------------------------------------------------------------------------------- /test/baidu/ui/Menubar/css/demo.css: -------------------------------------------------------------------------------- 1 | #wrapper{width:980px;border: 5px #999 solid;padding:2px;} 2 | 3 | .actived{background-color:#0A246A; color:#FFFFFF;} 4 | -------------------------------------------------------------------------------- /test/baidu/ui/Tooltip/css/demo.css: -------------------------------------------------------------------------------- 1 | .wrapper{width:300px;border: 5px #999 solid;padding:2px;} 2 | 3 | .actived{background-color:#0A246A; color:#FFFFFF;} 4 | -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-end-minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-end-minus.gif -------------------------------------------------------------------------------- /test/baidu/widget/js/a.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create("a", function(require, exports){ 2 | var b = require("b"); 3 | exports.a = b.b; 4 | }, {depends:['b']}); -------------------------------------------------------------------------------- /test/baidu/widget/js/d.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create("d", function(require, exports){ 2 | var b = require("c"); 3 | exports.d = c.c; 4 | }, {depends:['c']}); -------------------------------------------------------------------------------- /test/baidu/data/mindmap/baidu.data.DataModel.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/data/mindmap/baidu.data.DataModel.xmind -------------------------------------------------------------------------------- /test/baidu/data/mindmap/baidu.data.DataStore.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/data/mindmap/baidu.data.DataStore.xmind -------------------------------------------------------------------------------- /test/baidu/data/mindmap/baidu.data.Validator.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/data/mindmap/baidu.data.Validator.xmind -------------------------------------------------------------------------------- /test/baidu/flash/imageUpload/assets/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/flash/imageUpload/assets/background.png -------------------------------------------------------------------------------- /test/baidu/i18n/mindmap/baidu.i18n.currency.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/i18n/mindmap/baidu.i18n.currency.xmind -------------------------------------------------------------------------------- /test/baidu/parser/mindmap/baidu.parser.Json.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/parser/mindmap/baidu.parser.Json.xmind -------------------------------------------------------------------------------- /test/baidu/parser/mindmap/baidu.parser.Parser.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/parser/mindmap/baidu.parser.Parser.xmind -------------------------------------------------------------------------------- /test/baidu/parser/mindmap/baidu.parser.create.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/parser/mindmap/baidu.parser.create.xmind -------------------------------------------------------------------------------- /test/baidu/ui/Carousel/mindmap/Carousel$table.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Carousel/mindmap/Carousel$table.xmind -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/custom_hsb_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/custom_hsb_b.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/custom_hsb_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/custom_hsb_h.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/custom_hsb_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/custom_hsb_s.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/custom_rgb_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/custom_rgb_b.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/custom_rgb_g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/custom_rgb_g.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/custom_rgb_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/custom_rgb_r.png -------------------------------------------------------------------------------- /test/baidu/ui/Combox/combox/image/combo_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Combox/combox/image/combo_arrow.gif -------------------------------------------------------------------------------- /test/baidu/ui/DatePicker/css/demo.css: -------------------------------------------------------------------------------- 1 | #wrapper{width:980px;border: 5px #999 solid;padding:2px;} 2 | 3 | .actived{background-color:#0A246A; color:#FFFFFF;} 4 | -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/checkbox-halfcheck.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/checkbox-halfcheck.gif -------------------------------------------------------------------------------- /test/baidu/ui/Tree/extimage/elbow-end-plus-nl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Tree/extimage/elbow-end-plus-nl.gif -------------------------------------------------------------------------------- /test/baidu/data/mindmap/baidu.data.ModelManager.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/data/mindmap/baidu.data.ModelManager.xmind -------------------------------------------------------------------------------- /test/baidu/ui/Carousel/mindmap/Carousel$splice.xmind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/Carousel/mindmap/Carousel$splice.xmind -------------------------------------------------------------------------------- /test/baidu/flash/imageUpload/assets/list_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/flash/imageUpload/assets/list_background.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/colorpicker_indic.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/colorpicker_indic.gif -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/colorpicker_select.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/colorpicker_select.gif -------------------------------------------------------------------------------- /test/baidu/widget/js/uibase.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create("uibase", function(require, exports){ 2 | exports.create = function(){ 3 | return 'uibase_create'; 4 | }; 5 | }); 6 | -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/colorpicker_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/colorpicker_overlay.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/colorpicker_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/colorpicker_background.png -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/css/img/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaiduFE/Tangram-component/HEAD/test/baidu/ui/ColorPicker/css/img/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /src/baidu/i18n/cultures.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | ///import baidu.i18n; 6 | baidu.i18n.cultures = baidu.i18n.cultures || {}; -------------------------------------------------------------------------------- /test/baidu/fx/effect/expand_one.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_expand_one", 7 | url:"../effect/expand_one.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/fadeIn_one.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_fadeIn_one", 7 | url:"../effect/fadeIn_one.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/fadeIn_two.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_fadeIn_two", 7 | url:"../effect/fadeIn_two.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/fadeOut_one.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_fadeOut_one", 7 | url:"../effect/fadeOut_one.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/fadeOut_two.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_fadeOut_two", 7 | url:"../effect/fadeOut_two.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/moveBy_one.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_moveBy_one", 7 | url:"../effect/moveBy_one.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/moveBy_two.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_moveBy_two", 7 | url:"../effect/moveBy_two.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/moveTo_one.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_moveTo_one", 7 | url:"../effect/moveTo_one.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/moveTo_two.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_moveTo_two", 7 | url:"../effect/moveTo_two.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/collapse_one.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_collapse_one", 7 | url:"../effect/collapse_one.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/effect_style.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_effect_style", 7 | url:"../effect/effect_style.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/expand_three.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_expand_three", 7 | url:"../effect/expand_three.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/fadeIn_three.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_fadeIn_three", 7 | url:"../effect/fadeIn_three.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/moveBy_three.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_moveBy_three", 7 | url:"../effect/moveBy_three.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/moveTo_three.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_moveTo_three", 7 | url:"../effect/moveTo_three.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/ui/Combox/form.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/baidu/ui/ProgressBar/style.css: -------------------------------------------------------------------------------- 1 | .tangram-progressbar-bar { 2 | background-color: red; 3 | height: 20px; 4 | } 5 | 6 | .cssloaded { 7 | background-color : red; 8 | width : 20px; 9 | } -------------------------------------------------------------------------------- /test/baidu/fx/effect/collapse_three.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_collapse_three", 7 | url:"../effect/collapse_three.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/fadeOut_three.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_fadeOut_three", 7 | url:"../effect/fadeOut_three.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/highlight_one.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_highlight_one", 7 | url:"../effect/highlight_one.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/highlight_two.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_highlight_two", 7 | url:"../effect/highlight_two.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/fx/effect/highlight_three.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Administrator 3 | */ 4 | uiut.al( 5 | { 6 | name:"test_highlight_three", 7 | url:"../effect/highlight_three.html" 8 | } 9 | ); -------------------------------------------------------------------------------- /test/baidu/widget/js/core/log.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create("core.log", function(require, exports){ 2 | exports.log = function(){ 3 | if(typeof console != 'undefined'){ 4 | console.log(arguments); 5 | } 6 | } 7 | }); -------------------------------------------------------------------------------- /src/baidu/i18n.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | ///import baidu; 6 | /** 7 | * 提供国际的一些接口 8 | * @namespace baidu.i18n 9 | */ 10 | baidu.i18n = baidu.i18n || {}; -------------------------------------------------------------------------------- /src/baidu/form.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2011 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu; 7 | /** 8 | * 和表单相关的数据验证 9 | * @namespace baidu.form 10 | */ 11 | baidu.form = baidu.form || {}; -------------------------------------------------------------------------------- /src/baidu/fx.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu; 7 | /** 8 | * 提供各种公共的动画功能 9 | * @namespace baidu.fx 10 | */ 11 | baidu.fx = baidu.fx || {} ; 12 | -------------------------------------------------------------------------------- /src/baidu/data.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu; 7 | /** 8 | * 对一些数据处理提供的类 9 | * @namespace baidu.data 10 | */ 11 | baidu.data = baidu.data || {}; 12 | -------------------------------------------------------------------------------- /src/baidu/flash.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu; 7 | /** 8 | * 使用flash资源封装的一些功能 9 | * @namespace baidu.flash 10 | */ 11 | baidu.flash = baidu.flash || {}; 12 | -------------------------------------------------------------------------------- /src/baidu/tools.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu; 7 | /** 8 | * 提供一些公共工具,如log日志等 9 | * @namespace baidu.tools 10 | */ 11 | baidu.tools = baidu.tools || {}; 12 | -------------------------------------------------------------------------------- /test/baidu/widget/js/t9_1.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | baidu.widget.create('t9_1', function(r, e) { 5 | var t9_2 = r('t9_2'); 6 | e.exec = function() { 7 | return 1 + t9_2.exec(); 8 | }; 9 | }, { 10 | depends : 't9_2' 11 | }); -------------------------------------------------------------------------------- /src/baidu/history.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu; 7 | /** 8 | * 提供对浏览器处理浏览历史的功能 9 | * @namespace baidu.history 10 | */ 11 | baidu.history = baidu.history || {}; 12 | -------------------------------------------------------------------------------- /src/baidu/parser.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu; 7 | /** 8 | * 提供json,xml,html的基本处理方法 9 | * @namespace baidu.parser 10 | */ 11 | baidu.parser = baidu.parser || {}; 12 | -------------------------------------------------------------------------------- /test/baidu/ui/Login/resp.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/baidu/parser/type.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu.parser; 7 | 8 | baidu.parser.type = { 9 | 'XML': 'Xml', 10 | 'JSON': 'Json', 11 | 'HTML': 'Html' 12 | }; 13 | -------------------------------------------------------------------------------- /test/baidu/widget/js/t7_1.js: -------------------------------------------------------------------------------- 1 | baidu.widget.create("t7_1", function(r, e) { 2 | var t7_2 = r('t7_2').exec(); 3 | e.exec = function() { 4 | return 1 + t7_2; 5 | }; 6 | e.exec1 = function(){ 7 | return 1 + r('t7_2').exec(); 8 | }; 9 | }, { 10 | depends : 't7_2' 11 | }); -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/tools.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | function mySetup() { 3 | /* set as false for dialog keyboard listeners */ 4 | // baidu.ui.dialog.keyboardEventReady = false; 5 | } 6 | var s = QUnit.testStart; 7 | QUnit.testStart = function() { 8 | mySetup(); 9 | s.apply(this, arguments);; 10 | } 11 | })() -------------------------------------------------------------------------------- /test/baidu/data/dataSource/get.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/baidu/ui/Suggestion/main.css: -------------------------------------------------------------------------------- 1 | .tangram_sug_wpr{border:1px solid #817F82;position:absolute;top:28px;left:0} 2 | .tangram_sug_wpr table{width:100%;background:#fff;cursor:default} 3 | .tangram_sug_wpr td{font:14px verdana} 4 | .tangram_sug_mo{background-color:#36c;color:#fff} 5 | .tangram_sug_ml{background-color:#fff;color:#000} 6 | -------------------------------------------------------------------------------- /test/baidu/ui/Login/registerResult.php: -------------------------------------------------------------------------------- 1 | "; 5 | else 6 | echo ""; -------------------------------------------------------------------------------- /src/baidu/ui/behavior.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | * 5 | * path: ui/behavior.js 6 | * author: berg 7 | * version: 1.0.0 8 | * date: 2010/09/07 9 | */ 10 | 11 | ///import baidu.ui; 12 | /** 13 | * @namespace baidu.ui.behavior 为各个控件增加装饰器 14 | */ 15 | baidu.ui.behavior = baidu.ui.behavior || {}; 16 | -------------------------------------------------------------------------------- /test/baidu/ui/Button/tools.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | function mySetup() { 3 | var div = document.createElement('div'); 4 | div.id = 'div_test'; 5 | document.body.appendChild(div); 6 | testingElement.dom.push(div); 7 | } 8 | 9 | var s = QUnit.testStart; 10 | QUnit.testStart = function() { 11 | s.apply(this, arguments);; 12 | mySetup(); 13 | }; 14 | })(); -------------------------------------------------------------------------------- /test/baidu/ui/Toolbar/tools.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | function mySetup() { 3 | var div = document.createElement('div'); 4 | div.id = 'div_test'; 5 | document.body.appendChild(div); 6 | testingElement.dom.push(div); 7 | } 8 | 9 | var s = QUnit.testStart; 10 | QUnit.testStart = function() { 11 | s.apply(this, arguments);; 12 | mySetup(); 13 | }; 14 | })(); -------------------------------------------------------------------------------- /test/baidu/data/dataSource/tools.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | function mySetup() { 3 | var div = document.createElement('div'); 4 | div.id = 'div_test'; 5 | document.body.appendChild(div); 6 | testingElement.dom.push(div); 7 | } 8 | 9 | var s = QUnit.testStart; 10 | QUnit.testStart = function() { 11 | s.apply(this, arguments); 12 | mySetup(); 13 | }; 14 | })(); -------------------------------------------------------------------------------- /test/baidu/ui/StarRate/starRate.css: -------------------------------------------------------------------------------- 1 | .tangram-starrate-on, .tangram-starrate-off { 2 | background:url("http://st.youa.baidu.com/resource/css/mall/images/ratingstars.gif") no-repeat scroll 0 0 transparent; 3 | display:inline-block; 4 | height:21px; 5 | width:21px; 6 | zoom: 1; 7 | cursor: pointer; 8 | } 9 | .tangram-starrate-on { 10 | background-position:0 -40px; 11 | } -------------------------------------------------------------------------------- /test/baidu/widget/getPath.js: -------------------------------------------------------------------------------- 1 | module('baidu.widget.getPath'); 2 | 3 | test('base', function() { 4 | var w = baidu.widget, g = baidu.widget.getPath; 5 | equals(g('a'), 'a.js', 'base'); 6 | w._basePath = upath; 7 | equals(g('a'), upath + 'a.js', 'with path'); 8 | equals(g('core.log'), upath + 'core/log.js', 'with package'); 9 | w._basePath = undefined; 10 | }); -------------------------------------------------------------------------------- /test/baidu/flash/imageUpload/1.txt: -------------------------------------------------------------------------------- 1 | array(1) { 2 | ["picdata"]=> 3 | array(5) { 4 | ["name"]=> 5 | string(42) "Street_Fighter_IV_Wallpaper_by_Nekrono.jpg" 6 | ["type"]=> 7 | string(24) "application/octet-stream" 8 | ["tmp_name"]=> 9 | string(14) "/tmp/phpKd9BGR" 10 | ["error"]=> 11 | int(0) 12 | ["size"]=> 13 | int(1408428) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /test/baidu/ui/DatePicker/tools.js: -------------------------------------------------------------------------------- 1 | 2 | (function() { 3 | function mySetup() { 4 | var input = document.createElement('input'); 5 | input.id = 'input_test'; 6 | document.body.appendChild(input); 7 | testingElement.dom.push(input); 8 | } 9 | 10 | var s = QUnit.testStart; 11 | QUnit.testStart = function() { 12 | s.apply(this, arguments);; 13 | mySetup(); 14 | } 15 | })(); -------------------------------------------------------------------------------- /test/baidu/ui/Input/tools.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | function mySetup() { 3 | var div_test = document.createElement("div"); 4 | div_test.id = "div_test"; 5 | document.body.appendChild(div_test); 6 | testingElement.dom.push(div_test); 7 | } 8 | 9 | var s = QUnit.testStart; 10 | QUnit.testStart = function() { 11 | s.apply(this, arguments);; 12 | mySetup(); 13 | }; 14 | })(); -------------------------------------------------------------------------------- /src/baidu/data/dataSource.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Tangram 3 | * Copyright 2010 Baidu Inc. All rights reserved. 4 | * @path:data/dataSource.js 5 | * @author:walter 6 | * @version:1.0.0 7 | * @date:2010-11-30 8 | */ 9 | 10 | ///import baidu.data; 11 | 12 | /** 13 | * 数据源类 14 | * @namespace baidu.data.dataSource 15 | */ 16 | baidu.data.dataSource = baidu.dataSource = baidu.data.dataSource || {}; 17 | -------------------------------------------------------------------------------- /test/baidu/ui/Login/loginResult.php: -------------------------------------------------------------------------------- 1 | "; 6 | else 7 | echo ""; -------------------------------------------------------------------------------- /test/baidu/i18n/number.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | number 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /test/baidu/data/DataStore/newbooks.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | lawyer 5 | TT 6 | 2011 7 | 20 8 | 9 | 10 | Harry Potter 11 | Rowling 12 | 2009 13 | 30 14 | 15 | 16 | -------------------------------------------------------------------------------- /test/baidu/i18n/date.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | date 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /test/baidu/widget/js/dialog.js: -------------------------------------------------------------------------------- 1 | // 2 | 3 | baidu.widget.create("dialog", function(require, exports){ 4 | exports.create = function(){ 5 | return 'dialog_create'; 6 | //alert('creating dialog'); 7 | }; 8 | },{depends:['uibase']}); 9 | 10 | baidu.widget.create('dialogBase', function(require, exports){ 11 | exports.create = function(){ 12 | return 'dialogBase_create'; 13 | //alert('creating dialogBase'); 14 | }; 15 | },{depends:['uibase']}); -------------------------------------------------------------------------------- /test/tools/br/lib/StafResult.php: -------------------------------------------------------------------------------- 1 | rc = $rc; 9 | $this->info = $info; 10 | } 11 | 12 | public function __toString() 13 | { 14 | return "return code : ".$rc.", return info : ".$info."\n"; 15 | } 16 | 17 | public static function parse($result){ 18 | return new StafResult(0, $result); 19 | } 20 | }?> -------------------------------------------------------------------------------- /src/baidu/ui/Base/getParent.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram UI 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | * 5 | * path: baidu/ui/Base/getParent.js 6 | * author: berg 7 | * version: 1.0.0 8 | * date: 2010/12/02 9 | */ 10 | 11 | ///import baidu.ui.Base; 12 | 13 | /** 14 | * 获取UI控件的父控件 15 | * @memberOf baidu.ui.Base.prototype 16 | * @return {UI} 父控件 17 | */ 18 | baidu.ui.Base.getParent = function(){ 19 | return this._parent || null; 20 | }; 21 | -------------------------------------------------------------------------------- /test/baidu/fx/collapse_one_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | Redirect to UIUT runner.... 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/baidu/fx/expand_one_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/fadeIn_one_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/fadeIn_two_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/fadeOut_one_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/fadeOut_two_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/moveBy_one_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/moveBy_two_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/moveTo_one_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/moveTo_two_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/uiut/runTests_copy_to_test_folder.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/ui/Slider/style.css: -------------------------------------------------------------------------------- 1 | .tangram-slider{ 2 | width: 100%; 3 | height: 100%; 4 | background:silver; 5 | } 6 | .tangram-slider-progressbar,.tangram-progressbar{ 7 | height: 100%; 8 | } 9 | .tangram-progressbar-bar{ 10 | height: 100%; 11 | background:yellow; 12 | } 13 | .tangram-slider-thumb{ 14 | width:20px; 15 | height:100%; 16 | background:red; 17 | } 18 | .cssloaded { 19 | background-color : red; 20 | width : 20px; 21 | } -------------------------------------------------------------------------------- /test/baidu/fx/collapse_three_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/effect_style_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/expand_three_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/fadeIn_three_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/fadeOut_three_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/highlight_one_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/highlight_two_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/moveBy_three_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/moveTo_three_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/fx/highlight_three_run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Redirect to UIUT runner.... 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/baidu/ui/Table/css/table.css: -------------------------------------------------------------------------------- 1 | .tangram-table{border : black solid 1px;} 2 | .tangram-table-title {background:pink;} 3 | .tangram-table-title-col{padding:5px; font-weight:bold; border:blue solid 2px;} 4 | .tangram-table-row {background:#eee;} 5 | .tangram-table-row-hover{background:pink; } 6 | .tangram-table-row-press{background:red; } 7 | .tangram-table-row-disabled{background:gray; } 8 | .tangram-table-row-selected{background:lightgreen; } 9 | .tangram-table-row-col{border:green solid 1px; padding:5px;} 10 | -------------------------------------------------------------------------------- /test/tools/data/frame.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | "; 8 | else 9 | print ""; 10 | ?> 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/baidu/widget/get.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu.widget; 7 | 8 | /** 9 | * 获取已加载的widget. 10 | * @name baidu.widget.get 11 | * @function 12 | * @grammar baidu.widget.get(name) 13 | * @param {String} name widget名. 14 | * @remark 15 | * get方法仅获取已加载的widget,并不做加载. 。 16 | * 17 | * @return {Object} widget 18 | * @author rocy 19 | */ 20 | baidu.widget.get = function(name) { 21 | return baidu.widget._widgetAll[name] || null; 22 | }; 23 | -------------------------------------------------------------------------------- /test/baidu/ui/Combox/css/demo.css: -------------------------------------------------------------------------------- 1 | #wrapper{width:980px;border: 5px #999 solid;padding:2px;} 2 | 3 | .actived{background-color:#0A246A; color:#FFFFFF;} 4 | 5 | .tangram-combobox{ 6 | border:1px solid #A4BED4; 7 | font-size: 12px; 8 | display: inline-block; 9 | } 10 | .tangram-combobox-input{ 11 | border:0 none; 12 | height: 20px; 13 | } 14 | .tangram-combobox-arrow{ 15 | background: url("img/combo_arrow.gif") no-repeat; 16 | height: 20px; 17 | width: 18px; 18 | display: inline-block; 19 | cursor:pointer; 20 | } 21 | -------------------------------------------------------------------------------- /test/baidu/ui/Carousel/css/style.css: -------------------------------------------------------------------------------- 1 | .tangram-carousel {position: relative; overflow: hidden; border: green solid 4px;} 2 | .tangram-carousel .tangram-carousel-scroll {position: absolute;border : blue solid 1px;}' 3 | .tangram-carousel .tangram-carousel-scroll .tangram-carousel-item {position: relatiev;float: left;border: pink solid 1px;width: 80px;} 4 | .tangram-carousel .tangram-carousel-scroll .tangram-carousel-item-focus {border: red solid 1px;background: #eee;} 5 | .tangram-carousel-btn-base {float: left;} 6 | td {border:solid 1px red;} -------------------------------------------------------------------------------- /test/baidu/ui/behavior/tools.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | function mySetup() { 3 | var div = document.createElement('div'); 4 | div.id = 'div_test'; 5 | $(div).css('position', 'absolute').css('left', '0').css('top', '0').css( 6 | 'backgroundColor', 'red').css('width', '100px').css('height', 7 | '100px'); 8 | document.body.appendChild(div); 9 | testingElement.dom.push(div); 10 | } 11 | 12 | var s = QUnit.testStart; 13 | QUnit.testStart = function() { 14 | s.apply(this, arguments);; 15 | mySetup(); 16 | }; 17 | })(); -------------------------------------------------------------------------------- /test/baidu/ui/smartPosition/set.js: -------------------------------------------------------------------------------- 1 | module('baidu.ui.smartPosition.set') 2 | 3 | test('element', function() { 4 | var t = testingElement.dom[0]; 5 | var sp = baidu.ui.smartPosition.set(t, [ 100, 100 ]); 6 | equals(t.style.left, '100px', 'check left'); 7 | equals(t.style.top, '100px', 'check top'); 8 | }) 9 | 10 | test('id', function() { 11 | var t = testingElement.dom[0]; 12 | var sp = baidu.ui.smartPosition.set(t.id, [ 100, 100 ]); 13 | equals(t.style.left, '100px', 'check left'); 14 | equals(t.style.top, '100px', 'check top'); 15 | }) -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/tools.js: -------------------------------------------------------------------------------- 1 | 2 | (function() { 3 | function mySetup() { 4 | var div = document.createElement('div'); 5 | div.id = 'div_test'; 6 | document.body.appendChild(div); 7 | var b1 = document.createElement('input'); 8 | b1.id = 'b1'; 9 | b1.type = "button"; 10 | b1.value = "test"; 11 | div.appendChild(b1); 12 | testingElement.dom.push(b1); 13 | testingElement.dom.push(div); 14 | } 15 | 16 | var s = QUnit.testStart; 17 | QUnit.testStart = function() { 18 | s.apply(this, arguments);; 19 | mySetup(); 20 | } 21 | })(); -------------------------------------------------------------------------------- /src/baidu/parser/create.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu.parser; 7 | ///import baidu.parser.type; 8 | 9 | /** 10 | * 工厂方法,创建对应type的parser实例 11 | * @public 12 | * @param {baidu.parser.type} type 13 | * @param {Object} options 14 | */ 15 | baidu.parser.create = function(type, options){ 16 | var type = type || '', 17 | options = options || {}; 18 | 19 | if(baidu.parser[type]){ 20 | return new baidu.parser[type](options); 21 | } 22 | 23 | return null; 24 | }; 25 | -------------------------------------------------------------------------------- /test/baidu/ui/Tab/tools.js: -------------------------------------------------------------------------------- 1 | 2 | (function() { 3 | /** 4 | * create a input for test start 5 | *
  • create input 6 | *
  • set id input_test 7 | *
  • set type text 8 | * 9 | * @return input@type text 10 | */ 11 | function _testStart() { 12 | var id = "div_test"; 13 | var div = document.createElement("div"); 14 | div.id = id; 15 | document.body.appendChild(div); 16 | te.dom.push(div); 17 | } 18 | 19 | var s = QUnit.testStart; 20 | QUnit.testStart = function() { 21 | s.apply(this, arguments);; 22 | _testStart(); 23 | } 24 | })() 25 | -------------------------------------------------------------------------------- /test/baidu/ui/Popup/Popup$closeButton.js: -------------------------------------------------------------------------------- 1 | module('baidu.ui.popup.Popup$closeButton'); 2 | 3 | test('closeButton',function(){ 4 | expect(1); 5 | var options = { 6 | contentText : "content", 7 | closeText : "closetext", 8 | width : '10px', 9 | modal :false 10 | }; 11 | var popup = new baidu.ui.popup.Popup(options); 12 | te.obj.push(popup); 13 | popup.render(); 14 | popup.open(); 15 | /*closeButton insertHTML afterBefore popup.getBody()*/ 16 | UserAction.click(popup.getBody().firstChild); 17 | equal(popup.isShown(),false,'popup hides after clicking close'); 18 | }); -------------------------------------------------------------------------------- /test/baidu/data/dataSource/sio.js: -------------------------------------------------------------------------------- 1 | /** 2 | * check baidu.data.dataSource.sio properties, methods and events 3 | */ 4 | module("baidu.data.dataSource.sio"); 5 | 6 | //测试sio的get方法 7 | test("get", function(){ 8 | stop(); 9 | var sioSource = baidu.dataSource.sio(upath+"exist.js", { 10 | transition: function(){ 11 | return name; 12 | } 13 | }); 14 | sioSource.get({ 15 | callByType: "browser", 16 | onsuccess: function(response){ 17 | equals(window.fromBrowser, '百度'); 18 | start(); 19 | } 20 | }); 21 | }); 22 | -------------------------------------------------------------------------------- /test/baidu/ui/Pager/tools.js: -------------------------------------------------------------------------------- 1 | 2 | (function() { 3 | /** 4 | * create a input for test start 5 | *
  • create input 6 | *
  • set id input_test 7 | *
  • set type text 8 | * 9 | * @return input@type text 10 | */ 11 | function _testStart() { 12 | var id = "div_test"; 13 | var div = document.createElement("div"); 14 | div.id = id; 15 | document.body.appendChild(div); 16 | div.style.position = 'absolute'; 17 | te.dom.push(div); 18 | } 19 | 20 | var s = QUnit.testStart; 21 | QUnit.testStart = function() { 22 | s.apply(this, arguments);; 23 | _testStart(); 24 | } 25 | })() 26 | -------------------------------------------------------------------------------- /test/baidu/ui/Suggestion/tools.js: -------------------------------------------------------------------------------- 1 | 2 | (function() { 3 | /** 4 | * create a input for test start 5 | *
  • create input 6 | *
  • set id input_test 7 | *
  • set type text 8 | * 9 | * @return input@type text 10 | */ 11 | function _testStart() { 12 | var id = "input_test"; 13 | var input = document.createElement("input"); 14 | input.id = id; 15 | input.type = "text"; 16 | document.body.appendChild(input); 17 | te.dom.push(input); 18 | } 19 | 20 | var s = QUnit.testStart; 21 | QUnit.testStart = function() { 22 | s.apply(this, arguments);; 23 | _testStart(); 24 | } 25 | })() 26 | -------------------------------------------------------------------------------- /test/baidu/ui/Combox/select.js: -------------------------------------------------------------------------------- 1 | module('biadu.ui.combox.select'); 2 | 3 | test('',function(){ 4 | // var options = { 5 | // data : [{content : 'content-1',value : '1'} 6 | // ,{content : 'content-2',value : '2'} 7 | // ,{content : 'content-3',value : '3'}] 8 | // }; 9 | // var select = document.createElement('select'); 10 | // document.body.appendChild(select); 11 | // var cb = baidu.ui.combox.select(select,options); 12 | // var input = cb.getInput(); 13 | // input.value = '1'; 14 | // input.focus(); 15 | // input.value = '2'; 16 | // input.focus(); 17 | // input.value = '3'; 18 | // input.focus(); 19 | 20 | 21 | }); -------------------------------------------------------------------------------- /test/baidu/ui/Tree/test.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/baidu/ui/Modal/tools.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | /** 3 | * create a input for test start 4 | *
  • create input 5 | *
  • set id input_test 6 | *
  • set type text 7 | * 8 | * @return input@type text 9 | */ 10 | function _testStart() { 11 | var count = 0; 12 | while (count++ < 2) { 13 | var id = "div_test"+count; 14 | var div = document.createElement("div"); 15 | div.id = id; 16 | document.body.appendChild(div); 17 | te.dom.push(div); 18 | } 19 | } 20 | 21 | var s = QUnit.testStart; 22 | QUnit.testStart = function() { 23 | s.apply(this, arguments); 24 | _testStart(); 25 | }; 26 | })(); 27 | -------------------------------------------------------------------------------- /test/baidu/ui/Menubar/tools.js: -------------------------------------------------------------------------------- 1 | 2 | (function() { 3 | function mySetup() { 4 | var div = document.createElement('div'); 5 | div.id = 'div_test'; 6 | document.body.appendChild(div); 7 | var m = document.createElement('ul'); 8 | m.className = 'menu'; 9 | div.appendChild(m); 10 | var m1 = document.createElement('li'); 11 | m1.id = 'm1'; 12 | m1.innerHTML = 'm1'; 13 | m.appendChild(m1); 14 | testingElement.dom.push(m1); 15 | testingElement.dom.push(m); 16 | testingElement.dom.push(div); 17 | } 18 | 19 | var s = QUnit.testStart; 20 | QUnit.testStart = function() { 21 | s.apply(this, arguments);; 22 | mySetup(); 23 | } 24 | })(); -------------------------------------------------------------------------------- /test/baidu/ui/Popup/Popup$keyboard.js: -------------------------------------------------------------------------------- 1 | module('baidu.ui.Popup$keyboard'); 2 | 3 | test('closeonEsc', function() { 4 | var options = { 5 | closeOnEscape : true, 6 | modal : false, 7 | zIndex : 2000, 8 | modal : false, 9 | onopen : function() { 10 | ok(true, 'popup is opened'); 11 | }, 12 | onclose : function() { 13 | ok(true, 'popup is closed on Esc'); 14 | } 15 | 16 | }; 17 | var popup = new baidu.ui.popup.Popup(options); 18 | te.obj.push(popup); 19 | popup.render(); 20 | popup.open(); 21 | UserAction.fireKeyEvent('keypress', document, { 22 | 'keyCode' : 27 23 | }); 24 | 25 | // alert(baidu.ui.popup.instances.length) 26 | }); -------------------------------------------------------------------------------- /test/baidu/ui/Tooltip/Tooltip$close.js: -------------------------------------------------------------------------------- 1 | module('baidu.ui.Tooltip.Tooltip$close'); 2 | 3 | test('Close a common tooltip', function() { 4 | var div = testingElement.dom[0]; 5 | var div1 = document.createElement("div"); 6 | document.body.appendChild(div1); 7 | var tp = new baidu.ui.Tooltip({ 8 | target : div1, 9 | content:'tooltip_1', 10 | onclose:function(){ 11 | ok(true, 'The tooltip is closed'); 12 | } 13 | }); 14 | tp.render(div); 15 | tp.open(div1); 16 | ok(isShown(tp.getBody()), 17 | 'The tooltip is created in the page'); 18 | ua.click(baidu.g(tp.getId('head')).firstChild); 19 | }); -------------------------------------------------------------------------------- /test/tools/br/record.php: -------------------------------------------------------------------------------- 1 | 0){ 9 | //针对kissList过滤,移除全部正确用例 10 | 11 | $html = geneHTML($kissList); 12 | echo $html; 13 | require_once 'geneHistory.php'; 14 | geneHistory($html); 15 | 16 | if(!Config::$DEBUG){ 17 | $_mails = explode('mail=', $_POST['config']); 18 | if(sizeof($_mails)==2){ 19 | require_once 'smail.php'; 20 | sendmail($html, true); 21 | } 22 | require_once 'config.php'; 23 | Config::StopAll(); 24 | } 25 | } 26 | ?> -------------------------------------------------------------------------------- /src/baidu/ui/behavior/posable/setPositionByMouse.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Tangram UI 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu.ui.behavior.posable; 7 | ///import baidu.page.getMousePosition; 8 | 9 | /** 10 | * 将控件或者指定元素放置到当前鼠标位置 11 | * 12 | * @param {HTMLElement|string} element optional 要对齐的元素或元素id,如果不指定,默认为当前控件的主元素. 13 | * @param {Object} options optional 选项,同setPosition方法. 14 | */ 15 | baidu.ui.behavior.posable.setPositionByMouse = function(element, options) { 16 | var me = this; 17 | element = baidu.g(element) || me.getMain(); 18 | me._positionByCoordinate(element, baidu.page.getMousePosition(), options); 19 | }; 20 | -------------------------------------------------------------------------------- /test/baidu/ui/Carousel/css/slide.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | .tangram-carousel {position:relative; overflow:hidden;} 3 | .tangram-carousel .tangram-carousel-scroll {position:absolute;} 4 | .tangram-carousel .tangram-carousel-scroll .tangram-carousel-item {position:relatiev; border:pink solid 1px;} 5 | .tangram-carousel .tangram-carousel-scroll .tangram-carousel-item-focus{border:red solid 1px; background:#eee;} 6 | .tangram-carousel-btn-prev {border:gray solid 1px;} 7 | .tangram-carousel-btn-next {border:gray solid 1px;} 8 | 9 | .myslide {border:green solid 1px;} 10 | .myslide .myslide-scroll {} 11 | .myslide .myslide-scroll .myslide-item {float:left; width:100px; height:30px;} -------------------------------------------------------------------------------- /src/baidu/widget/getPath.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu.widget; 7 | 8 | /** 9 | * 获取widget的url路径.
    优先查找baidu.widget._pathInfo下的配置, 默认会将"pkg1.pkg2.widget" 映射成"pkg1/pkg2/widget.js" 10 | * @name baidu.widget.getPath 11 | * @function 12 | * @grammar baidu.widget.getPath(name) 13 | * @param {String} name widget名. 14 | * @remark 15 | * 可以根据实际情况重写 16 | * 17 | * @return {String} widget路径. 18 | * @author rocy 19 | */ 20 | baidu.widget.getPath = function(name) { 21 | return baidu.widget._basePath + 22 | (baidu.widget._pathInfo[name] || (name.replace(/\./g, '/') + '.js')); 23 | }; 24 | -------------------------------------------------------------------------------- /test/tools/br/geneHistory.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/Dialog$alert.js: -------------------------------------------------------------------------------- 1 | module('baidu.ui.dialog.Dialog$alert'); 2 | 3 | test('button', function() { 4 | var options = { 5 | 'type' : 'alert', 6 | onopen : function() { 7 | equal(baidu.ui.dialog.instances[da.guid], "show", 'open dialog'); 8 | }, 9 | onclose : function() { 10 | equal(baidu.ui.dialog.instances[da.guid], "hide", 'close dialog'); 11 | } 12 | }; 13 | var da = new baidu.ui.dialog.Dialog(options); 14 | da.render(); 15 | da.open(); 16 | var button = baidu.g(da.getId("footer")).lastChild; 17 | equal(button.className, da.getClass('ok'), 'check class'); 18 | equal(button.innerHTML, da["okText"], 'check content'); 19 | ua.click(button); 20 | }) -------------------------------------------------------------------------------- /test/baidu/fx/current.js: -------------------------------------------------------------------------------- 1 | module('baidu.fx.current'); 2 | 3 | /** 4 | * 载入两个特效,并通过方法判定是否正确获得特效列表 5 | */ 6 | test('get fx', function() { 7 | var t = te.dom[0]; 8 | $(t).css('height', '100px'); 9 | $(t).css('color', 'red'); 10 | $(t).css('position', 'absolute'); 11 | stop(); 12 | var a = baidu.fx.current(t); 13 | equals(a, null, 'none fx loaded'); 14 | ua.importsrc('baidu.fx.collapse,baidu.fx.fadeIn', function(){ 15 | var c = baidu.fx.collapse(t); 16 | var f = baidu.fx.fadeIn(t); 17 | var a = baidu.fx.current(t); 18 | 19 | equals(a.length, 2, 'collapse loaded'); 20 | equals(a[0], c, 'current check'); 21 | equals(a[1],f,'current check'); 22 | start(); 23 | }); 24 | }); -------------------------------------------------------------------------------- /test/baidu/parser/tools.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | function mySetup() { 3 | te.arrayCompare = function(data, result){ 4 | if(data.length != result.length) 5 | return false; 6 | for(var i = 0; i < data.length ; i++){ 7 | if(data[i] != result[i]) 8 | return false; 9 | } 10 | return true; 11 | }; 12 | te.isEmpty = function(obj) 13 | { 14 | for (var name in obj) 15 | { 16 | return false; 17 | } 18 | return true; 19 | }; 20 | } 21 | var s = QUnit.testStart; 22 | QUnit.testStart = function() { 23 | s.apply(this, arguments);; 24 | mySetup(); 25 | } 26 | })(); -------------------------------------------------------------------------------- /test/baidu/ui/Menubar/Menubar$icon.js: -------------------------------------------------------------------------------- 1 | module("baidu.ui.Menubar.Menubar$icon"); 2 | 3 | /** 4 | * check target 5 | *
  • check target shown and hide 6 | *
  • check delay time 7 | */ 8 | test('icon', function(){ 9 | var m1 = $('li#m1')[0], items = [{ 10 | content: 'm11' 11 | }], options = { 12 | data: items, 13 | type: 'click', 14 | element: m1, 15 | autoRender : true 16 | }; 17 | var menu = baidu.ui.create(baidu.ui.Menubar, options); 18 | testingElement.obj.push(menu); 19 | menu.update(); 20 | var item = menu.getItem('0-0'); 21 | ok(item.getElementsByTagName('span')[0].className, 'tangram-menubar-icon', 'icon init ok'); 22 | }) -------------------------------------------------------------------------------- /test/baidu/ui/DatePicker/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DatePicker 5 | 6 | 7 | 8 | 9 | 10 | 11 |
    12 | 13 |

    DatePicker

    14 | 15 |
    16 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/baidu/flash/imageUpload/getfile.php: -------------------------------------------------------------------------------- 1 | 22 | -------------------------------------------------------------------------------- /src/baidu/ui/getUI.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tangram UI 3 | * Copyright 2009 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | ///import baidu.ui; 7 | 8 | /** 9 | * 通过uiType找到UI类 10 | * @function 11 | * @grammar baidu.ui.getUI(uiType) 12 | * @param {String} uiType 查找规则:suggestion -> baidu.ui.Suggestion,toolbar-spacer -> baidu.ui.Toolbar.Spacer. 13 | * @return {object} UI类 14 | * @author berg 15 | */ 16 | baidu.ui.getUI = function(uiType){ 17 | var uiType = uiType.split('-'), 18 | result = baidu.ui, 19 | len = uiType.length, 20 | i = 0; 21 | 22 | for (; i < len; i++) { 23 | result = result[uiType[i].charAt(0).toUpperCase() + uiType[i].slice(1)]; 24 | } 25 | return result; 26 | }; 27 | -------------------------------------------------------------------------------- /test/baidu/ui/ColorPicker/ColorPicker$more.js: -------------------------------------------------------------------------------- 1 | module('baidu.ui.ColorPicker.ColorPicker$more'); 2 | 3 | // colorPalate的校验在colorPalate中进行,此处仅校验交互接口 4 | test("base", function() { 5 | stop(); 6 | ua.loadcss(upath + 'css/colorpicker.css', 7 | function() { 8 | var cp = new baidu.ui.ColorPicker({ 9 | posable : true, 10 | autoRender : true, 11 | element : te.dom[1] 12 | }); 13 | te.obj.push(cp); 14 | ok(cp.more, 'more is set'); 15 | cp.render(); 16 | cp.open(); 17 | ok(cp.colorPalette, "Check colorPalette obj exists or not"); 18 | ok(cp.colorPaletteDialog, 19 | "Check colorPaletteDialog obj exists or not"); 20 | start(); 21 | }, 'tangram-dialog-cancel', 'height', '20px'); 22 | }); -------------------------------------------------------------------------------- /test/baidu/ui/Dialog/Dialog$closeButton.js: -------------------------------------------------------------------------------- 1 | module('baidu.ui.Dialog.Dialog$closeButton') 2 | 3 | /** 4 | *