rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
fullscreen: player.model.fullscreen, | return function(width, height) { player.model.width = width; player.model.height = height; player.css("width", width); player.css("height", height); player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { width: width, hieght: height }); }; | |
(function () { rendererTester(); }()); | rendererTest.test("cspace.renderUtils.expander()", function () { var testUISpec = { selector1: "${field1}", selector2: "${field2}", selector3: "${field3}" }; var expectedTree = { children: [{ ID: "selector1", valuebinding: "field1" }, { ID: "selector2", valuebinding: "field2" }, { ID: "selector3", valuebinding: "field3... | (function () { rendererTester();}()); |
self.xhr = $.getJSON( url, request, function( data, status, xhr ) { if ( xhr === self.xhr ) { response( data ); } self.xhr = null; }); | setTimeout(function() { self.previous = previous; }, 1); | self.xhr = $.getJSON( url, request, function( data, status, xhr ) { if ( xhr === self.xhr ) { response( data ); } self.xhr = null; }); |
player.model.domelement[0].sendEvent("PLAY"); | return function(path) { player.model.domelement[0].sendEvent("LOAD", path); }; | |
return this.domManip(arguments, false, function(elem){ this.parentNode.insertBefore( elem, this ); }); | (function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... | return this.domManip(arguments, false, function(elem){ this.parentNode.insertBefore( elem, this ); }); |
return this.each(function() { if ( args2.callback ) { args2.callback.call( this ); } }); | $.each(list, function(i, x){ unit = element.cssUnit(x); if (unit[0] > 0) value[x] = unit[0] * factor + unit[1]; }); | return this.each(function() { if ( args2.callback ) { args2.callback.call( this ); } }); |
test("keydown HOME on input, sets value to minimum", function() { el = $("#spin"); options = { min:-100, value:50, step:10 } el.spinner(options); simulateKeyDownUp(el, $.ui.keyCode.HOME); equals(el.val(), -100); el.spinner('option', 'min', -200); simulateKeyDownUp(el, $.ui.keyCode.HOME); equals(el.val(), -200); | test("reading HTML5 attributes", function() { var el = $('<input id="spinner" type="number" min="-100" max="100" value="5" step="2">').spinner(); equals(el.spinner('option', 'value'), 5, 'value'); equals(el.spinner('option', 'max'), 100, 'max'); equals(el.spinner('option', 'min'), -100, 'min'); equals(el.spinner('optio... | test("keydown HOME on input, sets value to minimum", function() { el = $("#spin"); options = { min:-100, value:50, step:10 } el.spinner(options); simulateKeyDownUp(el, $.ui.keyCode.HOME); equals(el.val(), -100); el.spinner('option', 'min', -200); simulateKeyDownUp(el, $.ui.keyCode.HOME); equals(el.val(), -200);}... |
transienttabs.temphidetabs(); permanenttabs.temphidetabs(); | $('#mapdiv').mousedown(function(evt) { setxy(evt); if(evt.preventDefault){ evt.preventDefault(); } if(juststarted==1){ killmenu(); juststarted = 0; } killmenu(); removetooltips(); $('div.slideoutcontents').hide('fast'); //$('div.slideoutcontentscontents').empty(); documen... | |
rendererTest.test("cspace.renderUtils.expander()", function () { | rendererTest.test("cspace.renderUtils.cutpointsFromUISpec()", function () { | rendererTest.test("cspace.renderUtils.expander()", function () { var testUISpec = { selector1: "${field1}", selector2: "${field2}", selector3: "${field3}" }; var expectedTree = { children: [{ ID: "selector1", valuebinding... |
var expectedTree = { children: [{ ID: "selector1", valuebinding: "field1" }, { ID: "selector2", valuebinding: "field2" }, { ID: "selector3", valuebinding: "field3" }] }; var tree = cspace.renderUtils.expander(testUISpec, {}); jqUnit.assertDeepEq("Expander properly expands protoTree to componentTree ", expectedTree, tre... | var expectedCutpoints = [{ id: "selector1", selector: "selector1" }, { id: "selector2", selector: "selector2" }, { id: "selector3", selector: "selector3" }]; var cutpoints = cspace.renderUtils.cutpointsFromUISpec(testUISpec); jqUnit.assertDeepEq("Cutpoints are properly generated from the uispec ", expectedCutpoints, cu... | rendererTest.test("cspace.renderUtils.expander()", function () { var testUISpec = { selector1: "${field1}", selector2: "${field2}", selector3: "${field3}" }; var expectedTree = { children: [{ ID: "selector1", valuebinding... |
return function() { cspace.util.invokeWithoutFail(first, arguments); return cspace.util.invokeWithoutFail(second, arguments); }; | $("div").each(function () { $(this).css('zIndex', zIndexNumber); zIndexNumber -= 1; }); | return function() { cspace.util.invokeWithoutFail(first, arguments); return cspace.util.invokeWithoutFail(second, arguments); }; |
return function(hide) { closeButton.button[model.term === model.baseRecord.label || hide? "hide": "show"] (); }; | return function(item) { var decoded = decodeItem(item); if (decoded.type) { $(item)[funcName] (that.options.styles[decoded.type + "Select"]); } }; | return function(hide) { closeButton.button[model.term === model.baseRecord.label || hide? "hide": "show"] (); }; |
test("source, custom", function() { source_test(function(request, response) { same( request.term, "ja" ); response(["java", "javascript"]); }); | test("source, url string with remote json object array, only label properties", function() { source_test("remote_object_array_labels.txt", true); | test("source, custom", function() { source_test(function(request, response) { same( request.term, "ja" ); response(["java", "javascript"]); });}); |
blank_time.concat($R(0,59).select(function(x){return (x % that.options.get('minute_interval')==0)}).map(function(x){ return $A([ Date.padded2(x), x]); } ) ), | blank_time.concat($R(0,23).map(function(x) {t.setHours(x); return $A([t.getAMPMHour()+ " " + t.getAMPM(),x])} )), | blank_time.concat($R(0,59).select(function(x){return (x % that.options.get('minute_interval')==0)}).map(function(x){ return $A([ Date.padded2(x), x]); } ) ), |
configTable = configContent.find('table:eq(0)').tablesorter({ headers: { 3: { sorter: false } }, textExtraction:mixedLinksExtraction }); | configTable = $('#configTable'); | $(document).ready(function() { configContent = $('#configContent'); // config table list configTable = configContent.find('table:eq(0)').tablesorter({ headers: { 3: { sorter: false } }, textExtraction:mixedLinksExtraction }); configBody = configTable.find('tbody'); configRow = configBody.find('tr').clone(); ... |
configRow = configBody.find('tr').clone(); factoryTable = configContent.find('table:eq(1)').tablesorter({ headers: { 2: { sorter: false } } }); factoryBody = factoryTable.find('tbody'); factoryRow = factoryBody.find('tr').clone(); | configRow = configBody.find('tr:eq(0)').clone(); factoryRow = configBody.find('tr:eq(1)').clone(); | $(document).ready(function() { configContent = $('#configContent'); // config table list configTable = configContent.find('table:eq(0)').tablesorter({ headers: { 3: { sorter: false } }, textExtraction:mixedLinksExtraction }); configBody = configTable.find('tbody'); configRow = configBody.find('tr').clone(); ... |
configBody.empty(); factoryBody.empty(); | configBody.empty(); var factories = {}; | $(document).ready(function() { configContent = $('#configContent'); // config table list configTable = configContent.find('table:eq(0)').tablesorter({ headers: { 3: { sorter: false } }, textExtraction:mixedLinksExtraction }); configBody = configTable.find('tbody'); configRow = configBody.find('tr').clone(); ... |
for(var i in configData.pids) addConfig(configData.pids[i]); for(var i in configData.fpids) addFactoryConfig(configData.fpids[i]); initStaticWidgets(configContent); | for(var i in configData.pids) { var c = configData.pids[i]; if (c.fpid) { if (!factories[c.fpid]) factories[c.fpid] = new Array(); factories[c.fpid].push(c); } else { addConfig(c); } } for(var i in configData.fpids) { addFactoryConfig(configData.fpids[i]); | $(document).ready(function() { configContent = $('#configContent'); // config table list configTable = configContent.find('table:eq(0)').tablesorter({ headers: { 3: { sorter: false } }, textExtraction:mixedLinksExtraction }); configBody = configTable.find('tbody'); configRow = configBody.find('tr').clone(); ... |
var sorting = [[0,0]]; configTable.trigger('sorton', [sorting]); factoryTable.trigger('sorton', [sorting]); | var confs = factories[ configData.fpids[i].id ]; if (confs) for (var j in confs) { addConfig(confs[j]); } } initStaticWidgets(configTable); configTable.tablesorter({ headers: { 2: { sorter: false } }, sortList: [[0,1]], textExtraction: treetableExtraction }).bind('sortStart', function() { var table = $(this).trigger... | $(document).ready(function() { configContent = $('#configContent'); // config table list configTable = configContent.find('table:eq(0)').tablesorter({ headers: { 3: { sorter: false } }, textExtraction:mixedLinksExtraction }); configBody = configTable.find('tbody'); configRow = configBody.find('tr').clone(); ... |
$.each(list, function(i, x){ unit = element.cssUnit(x); if (unit[0] > 0) value[x] = unit[0] * factor + unit[1]; }); | return this.each(function() { if ( args2.callback ) { args2.callback.call( this ); } }); | $.each(list, function(i, x){ unit = element.cssUnit(x); if (unit[0] > 0) value[x] = unit[0] * factor + unit[1]; }); |
var ac = $('#list1').accordion({ active: $("#list1 a:last") }); | var ac = $('#list1').accordion({ active: $("#list1 h3:last") }); | test("activate, jQuery or DOM element", function() { var ac = $('#list1').accordion({ active: $("#list1 a:last") }); state(ac, 0, 0, 1); ac.accordion("activate", $("#list1 a:first")); state(ac, 1, 0, 0); ac.accordion("activate", $("#list1 a")[1]); state(ac, 0, 1, 0);}); |
ac.accordion("activate", $("#list1 a:first")); | ac.accordion("activate", $("#list1 h3:first")); | test("activate, jQuery or DOM element", function() { var ac = $('#list1').accordion({ active: $("#list1 a:last") }); state(ac, 0, 0, 1); ac.accordion("activate", $("#list1 a:first")); state(ac, 1, 0, 0); ac.accordion("activate", $("#list1 a")[1]); state(ac, 0, 1, 0);}); |
ac.accordion("activate", $("#list1 a")[1]); | ac.accordion("activate", $("#list1 h3")[1]); | test("activate, jQuery or DOM element", function() { var ac = $('#list1').accordion({ active: $("#list1 a:last") }); state(ac, 0, 0, 1); ac.accordion("activate", $("#list1 a:first")); state(ac, 1, 0, 0); ac.accordion("activate", $("#list1 a")[1]); state(ac, 0, 1, 0);}); |
test( 'eCSStender::newStyleElement', function(){ ok( typeof(eCSStender.newStyleElement)=='function', 'method exists' ); var el = eCSStender.newStyleElement( 'print' ); ok( typeof(el)!='undefined', 'new element exists' ); ok( el.getAttribute('id').indexOf('temp')!=-1, 'auto-generated id created' ); ok( typeof(document.g... | test( 'eCSStender::register', function(){ ok( typeof(eCSStender.register)=='function', 'method is the correct type' ); | test( 'eCSStender::newStyleElement', function(){ ok( typeof(eCSStender.newStyleElement)=='function', 'method exists' ); var el = eCSStender.newStyleElement( 'print' ); ok( typeof(el)!='undefined', 'new element exists' ); ok( el.getAttribute('id').indexOf('temp')!=-1, 'auto-generated id created' ); ok( ... |
that.applier.modelChanged.addListener("fields", function (model, oldModel, changeRequest) { that.unsavedChanges = true; | that.dataContext.events.afterFetch.addListener(function () { that.unsavedChanges = false; | that.applier.modelChanged.addListener("fields", function (model, oldModel, changeRequest) { that.unsavedChanges = true; }); |
$(this.btnUp).mouseenter(function(){ this._parent.mouseOverToggle(true, -1); $(this).addClass("egw_fw_ui_scrollarea_button_hover"); | $(this.scrollDiv).mousewheel(function(e, delta) { if (delta) { self.scrollDelta(- delta * 30); } | $(this.btnUp).mouseenter(function(){ this._parent.mouseOverToggle(true, -1); $(this).addClass("egw_fw_ui_scrollarea_button_hover"); }); |
test("Tabbable - disabled elements", function() { expect(9); | test("tabbable - visible, enabled elements", function() { expect(16); | test("Tabbable - disabled elements", function() { expect(9); isNotTabbable('#disabledElement-inputTypeNone', 'input, no type'); isNotTabbable('#disabledElement-inputTypeText', 'input, type text'); isNotTabbable('#disabledElement-inputTypeCheckbox', 'input, type checkbox'); isNotTabbable('#disabledElement-inputTypeRadi... |
isNotTabbable('#disabledElement-inputTypeNone', 'input, no type'); isNotTabbable('#disabledElement-inputTypeText', 'input, type text'); isNotTabbable('#disabledElement-inputTypeCheckbox', 'input, type checkbox'); isNotTabbable('#disabledElement-inputTypeRadio', 'input, type radio'); isNotTabbable('#disabledElement-inpu... | isTabbable('#visibleAncestor-inputTypeNone', 'input, no type'); isTabbable('#visibleAncestor-inputTypeText', 'input, type text'); isTabbable('#visibleAncestor-inputTypeCheckbox', 'input, type checkbox'); isTabbable('#visibleAncestor-inputTypeRadio', 'input, type radio'); isTabbable('#visibleAncestor-inputTypeButton', '... | test("Tabbable - disabled elements", function() { expect(9); isNotTabbable('#disabledElement-inputTypeNone', 'input, no type'); isNotTabbable('#disabledElement-inputTypeText', 'input, type text'); isNotTabbable('#disabledElement-inputTypeCheckbox', 'input, type checkbox'); isNotTabbable('#disabledElement-inputTypeRadi... |
repeatable.events.afterDelete.addListener(function () { jqUnit.assertEquals("After deleting non-primary item, model is of length 1", 1, fluid.model.getBeanValue(repeatable.model, repeatable.options.elPath).length); }, "deleteNonPrimary"); | (function () { repeatableTester(jQuery); }()); | repeatable.events.afterDelete.addListener(function () { jqUnit.assertEquals("After deleting non-primary item, model is of length 1", 1, fluid.model.getBeanValue(repeatable.model, repeatable.options.elPath).length); }, "deleteNonPrimary"); |
that.events.afterRender.addListener(function () { that.locate("save").click(that.requestSave); that.locate("deleteButton").click(that.remove); that.locate("cancel").click(function () { that.locate("messageContainer", "body").hide(); that.events.onCancel.fire(); }); cspace.util.setZIndex(); cspace.util.corner(); | that.applier.modelChanged.addListener("fields", function (model, oldModel, changeRequest) { that.unsavedChanges = true; | that.events.afterRender.addListener(function () { that.locate("save").click(that.requestSave); that.locate("deleteButton").click(that.remove); that.locate("cancel").click(function () { that.locate("messageContainer", "body").hide(); that.events.onCa... |
(function () { utilitiesTester(jQuery); }()); | utilitiesTest.test("cspace.util.buildUrl", function () { var args = [[ "fetch", "base", "someType", "123", "" ], [ "fetch", "base/", "someType", "123", "" ], [ "fetch", "base/", "someType", "123", ".json" ], [ "fetch", "base/", "someType" ], [ "addRelations", "base/" ], [ "addRelations", "base/", "ignore_stuff" ]]; var... | (function () { utilitiesTester(jQuery);}()); |
repeatableTest.test("Init test for brief description", function () { expect(13); var myRepeatable = setupRepeatableWithBriefDesc(); basicMarkupGenerateTest(myRepeatable.container, ".csc-object-identification-brief-description", "This is brief description."); | repeatableTest.test("Delete Functionality", function () { expect(9); var myRepeatable = basicSetup({model: { myTexts: [{ myText: "cat", _primary: true }, { myText: "dog", _primary: false }, { myText: "fish", _primary: false }] }}); jqUnit.assertEquals("There are three items rendered", 3, $("li", myRepeatable.containe... | repeatableTest.test("Init test for brief description", function () { expect(13); var myRepeatable = setupRepeatableWithBriefDesc(); basicMarkupGenerateTest(myRepeatable.container, ".csc-object-identification-brief-description", "This is brief description."); }); |
return function(item) { var decoded = decodeItem(item); if (decoded.type) { $(item)[funcName] (that.options.styles[decoded.type + "Select"]); } }; | cspace.util.globalDismissal(union, function() { that.close(); }); | return function(item) { var decoded = decodeItem(item); if (decoded.type) { $(item)[funcName] (that.options.styles[decoded.type + "Select"]); } }; |
element.slideUp(speed, function() { _animate(element, true); }); | _rotationInterval = setInterval(function() { _degreesRotated += _bufferRotation; jwplayer.html5.utils.animations.rotate(_display.display_icon, _degreesRotated % 360); }, _bufferInterval); | element.slideUp(speed, function() { _animate(element, true); }); |
.click(function(e) { if ( !$( e.target ).closest( ".ui-menu-item" ).length ) { | .click(function( event ) { if ( !$( event.target ).closest( ".ui-menu-item" ).length ) { | .click(function(e) { if ( !$( e.target ).closest( ".ui-menu-item" ).length ) { return; } // temporary e.preventDefault(); self.select(); }); |
e.preventDefault(); self.select(); | event.preventDefault(); self.select( event ); | .click(function(e) { if ( !$( e.target ).closest( ".ui-menu-item" ).length ) { return; } // temporary e.preventDefault(); self.select(); }); |
$( document ).one( "mouseup", function() { lastActive = null; }); | this.buttonElement.bind( "click.button", function() { if ( options.disabled ) { return; } $( this ).addClass( "ui-state-active" ); self.buttonElement.attr( "aria-pressed", true ); var radio = self.element[ 0 ]; radioGroup( radio ) .not( radio ) .map(function() { return $( this ).button( "widget" )[ 0 ]; }) .removeClas... | $( document ).one( "mouseup", function() { lastActive = null; }); |
return $.map( items, function(item) { if ( typeof item === "string" ) { return { label: item, value: item }; } return $.extend({ label: item.label || item.value, value: item.value || item.label }, item ); }); | self.xhr = $.getJSON( url, request, function( data, status, xhr ) { if ( xhr === self.xhr ) { response.apply( this, arguments ); } }); | return $.map( items, function(item) { if ( typeof item === "string" ) { return { label: item, value: item }; } return $.extend({ label: item.label || item.value, value: item.value || item.label }, item ); }); |
(function(jwplayer) { jwplayer.html5.eventdispatcher = function(id, debug) { var _id = id; var _debug = debug; var _listeners; var _globallisteners; this.resetEventListeners = function() { _listeners = {}; _globallisteners = []; }; this.resetEventListeners(); this.addEventListener = function(type, listener, count)... | _rotationInterval = setInterval(function() { _degreesRotated += _bufferRotation; jwplayer.html5.utils.animations.rotate(_display.display_icon, _degreesRotated % 360); }, _bufferInterval); | (function(jwplayer) { jwplayer.html5.eventdispatcher = function(id, debug) { var _id = id; var _debug = debug; var _listeners; var _globallisteners; /** Clears all event listeners **/ this.resetEventListeners = function() { _listeners = {}; _globallisteners = []; }; this.resetEventListeners(); /** Ad... |
var _defaults = { prefix: "http: file: "logo.png", link: "http: margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", position: "bottom-left", width: 93, height: 30 | jwplayer.html5.extensionmap = { "3gp": "video/3gpp", "3gpp": "video/3gpp", "3g2": "video/3gpp2", "3gpp2": "video/3gpp2", "flv": "video/x-flv", "f4a": "audio/mp4", "f4b": "audio/mp4", "f4p": "video/mp4", "f4v": "video/mp4", "mov": "video/quicktime", "m4a": "audio/mp4", "m4b": "audio/mp4", "m4p": "audio/mp4", "m4v": "vid... | (function(jwplayer) { var _defaults = { prefix: "http://l.longtailvideo.com/html5/", file: "logo.png", link: "http://www.longtailvideo.com/players/jw-flv-player/", margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", position: "bottom-left", width: 93, height: 30 }; _css = jwplayer.html5.utils.css; jwpl... |
_css = jwplayer.html5.utils.css; jwplayer.html5.logo = function(api, logoConfig) { var _api = api; var version = api.version.split(/\W/).splice(0,2).join("/"); if (_defaults.prefix.indexOf(version) < 0){ _defaults.prefix += version + "/"; } var _settings = jwplayer.utils.extend({}, _defaults); var _logo = document.c... | })(jwplayer); | (function(jwplayer) { var _defaults = { prefix: "http://l.longtailvideo.com/html5/", file: "logo.png", link: "http://www.longtailvideo.com/players/jw-flv-player/", margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", position: "bottom-left", width: 93, height: 30 }; _css = jwplayer.html5.utils.css; jwpl... |
var setUnchanged = function () { that.unsavedChanges = true; }; for (var selector in that.uispec) { if (that.uispec.hasOwnProperty(selector)) { if (selector.indexOf(":") !== -1) { selector = selector.substring(0, selector.indexOf(":")); } var el = $(selector); el.change(setUnchanged); } } | that.events.afterRender.addListener(function () { that.locate("save").click(that.requestSave); that.locate("deleteButton").click(that.remove); var setUnchanged = function () { that.unsavedChanges = true; }; for (var selector in that.uispec) {... | |
adminUsersTest.test("Test search/unsearch functionality", function () { var adminUsers; testOpts.queryURL = "../../main/webapp/html/data/users/search/list.json"; testOpts.listeners = { afterSearch: function () { jqUnit.isVisible("Unsearch is visible after search", adminUsers.options.selectors.unSearchButton); jqUnit.as... | adminUsers.userListEditor.list.events.afterRender.addListener(function () { | adminUsersTest.test("Test search/unsearch functionality", function () { var adminUsers; testOpts.queryURL = "../../main/webapp/html/data/users/search/list.json"; testOpts.listeners = { afterSearch: function () { jqUnit.isVisible("Unsearch is visible after search", admi... |
(function($) { $.fn.jwplayer = function(options) { return this.each(function() { | return this.each(function() { | (function($) { /** Hooking the controlbar up to jQuery. **/ $.fn.jwplayer = function(options) { return this.each(function() { $.fn.jwplayerUtils.log("setup", this); var model = $.fn.jwplayerModel($(this), options); var player = { model: model }; players[model.config.id] = player; player = $.extend(playe... |
}; function finishSetup(player) { $.fn.jwplayerControlbar(player); player.sendEvent("JWPLAYER_READY"); } var players = {}; $.fn.jwplayer.defaults = { autostart: false, file: undefined, height: 295, image: undefined, skin: 'http: volume: 90, width: 480, flashplayer:'http: }; function play(player) { return func... | (function($) { /** Hooking the controlbar up to jQuery. **/ $.fn.jwplayer = function(options) { return this.each(function() { $.fn.jwplayerUtils.log("setup", this); var model = $.fn.jwplayerModel($(this), options); var player = { model: model }; players[model.config.id] = player; player = $.extend(playe... | |
$.each( ['em','px','%','pt'], function(i, unit){ if(style.indexOf(unit) > 0) val = [parseFloat(style), unit]; }); | return this.each(function() { if ( args2.callback ) { args2.callback.call( this ); } }); | $.each( ['em','px','%','pt'], function(i, unit){ if(style.indexOf(unit) > 0) val = [parseFloat(style), unit]; }); |
(function() { var dom = APE.dom, Event = dom.Event; Event.getCoords = getCoords; function getCoords(e) { var f; if ("pageX" in e) { f = function(e) { return { x : e.pageX, y : e.pageY }; }; | (function(){ var dom = APE.dom; dom.getStyle = getStyle; dom.setOpacity = setOpacity; var getCS = "getComputedStyle", IS_COMPUTED_STYLE = dom.IS_COMPUTED_STYLE, CURRENT_STYLE = "currentStyle", OPACITY = "opacity", STYLE = "style", PX = "px", FILTER = "filter", alphaString = "alpha("+OPACITY+"=", multiLengthPropExp = ... | (function() { var dom = APE.dom, Event = dom.Event; Event.getCoords = getCoords; function getCoords(e) { var f; if ("pageX" in e) { f = function(e) { return { x : e.pageX, y : e.pageY }; }; } ... |
f = function(e) { var scrollOffsets = dom.getScrollOffsets(); e = e || window.event; return { x : e.clientX + scrollOffsets.left, y : e.clientY + scrollOffsets.top }; }; } return (Event.getCoords = f)(e); } })();/** @fileoverview | cs = el[CURRENT_STYLE]; if(p === OPACITY) { value = getFilterOpacity(cs); } else { value = cs[p]; if(autoPercentExp.test(value)) { value = getCurrentStyleValueFromAutoOrPercent(el, p); } else if(!(p in cs)) { return""; } } matches = nonPixelExp.exec(value); if(matches) { splitVal = value.split(" "); splitVal[0] = conve... | (function() { var dom = APE.dom, Event = dom.Event; Event.getCoords = getCoords; function getCoords(e) { var f; if ("pageX" in e) { f = function(e) { return { x : e.pageX, y : e.pageY }; }; } ... |
if (_defaults.prefix !== ""){ _defaults.prefix += api.version.split(/\W/).splice(0,2).join("/") + "/"; | var version = api.version.split(/\W/).splice(0,2).join("/"); if (_defaults.prefix.indexOf(version) < 0){ _defaults.prefix += version + "/"; | (function(jwplayer) { var _defaults = { prefix: "http://l.longtailvideo.com/html5/", file: "logo.png", link: "http://www.longtailvideo.com/players/jw-flv-player/", margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", position: "bottom-left", width: 93, height: 30 }; _css = jwplayer.html5.utils.css; jwpl... |
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | jQuery.fn["inner" + name] = function() { return this[0] ? jQuery.css( this[0], type, false, "padding" ) : null; }; | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... |
.bind('getData.' + name, function(event, key) { if (event.target == element) { return self._getData(key); } }) | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | .bind('getData.' + name, function(event, key) { if (event.target == element) { return self._getData(key); } }) |
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | jQuery.fn["outer" + name] = function( margin ) { return this[0] ? jQuery.css( this[0], type, false, margin ? "margin" : "border" ) : null; }; | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... |
.bind('remove', function() { return self.destroy(); }); | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | .bind('remove', function() { return self.destroy(); }); |
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | jQuery.fn[ type ] = function( size ) { var elem = this[0]; if ( !elem ) { return size == null ? null : this; } if ( jQuery.isFunction( size ) ) { return this.each(function( i ) { var self = jQuery( this ); self[ type ]( size.call( this, i, self[ type ]() ) ); }); } return ("scrollTo" in elem && elem.document) ? ele... | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... |
$.each(options, function(key, value) { self._setData(key, value); }); | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | $.each(options, function(key, value) { self._setData(key, value); }); |
}(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | return this.each(function( i ) { var self = jQuery( this ); self[ type ]( size.call( this, i, self[ type ]() ) ); }); | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... |
.bind('mousedown.'+this.widgetName, function(event) { return self._mouseDown(event); }) | }(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(sele... | .bind('mousedown.'+this.widgetName, function(event) { return self._mouseDown(event); }) |
jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | ;jQuery.ui || (function($) { $.ui = { version: "1.8", plugin: { add: function(module, option, set) { var proto = $.ui[module].prototype; for(var i in set) { proto.plugins[i] = proto.plugins[i] || []; proto.plugins[i].push([option, set[i]]); } }, call: function(instance, name, args) { var set = instance.plugins[name... | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... |
.bind('click.'+this.widgetName, function(event) { if(self._preventClickEvent) { self._preventClickEvent = false; event.stopImmediatePropagation(); return false; } }); | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | .bind('click.'+this.widgetName, function(event) { if(self._preventClickEvent) { self._preventClickEvent = false; event.stopImmediatePropagation(); return false; } }); |
jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | ? this.each(function() { var elem = this; setTimeout(function() { $(elem).focus(); (fn && fn.call(elem)); }, delay); }) | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... |
this._mouseDelayTimer = setTimeout(function() { self.mouseDelayMet = true; }, this.options.delay); | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | this._mouseDelayTimer = setTimeout(function() { self.mouseDelayMet = true; }, this.options.delay); |
jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | setTimeout(function() { $(elem).focus(); (fn && fn.call(elem)); }, delay); | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... |
;(function($) { $.each({ focus: 'focusin', blur: 'focusout' }, function( original, fix ){ $.event.special[fix] = { setup:function() { if ( $.browser.msie ) return false; this.addEventListener( original, $.event.special[fix].handler, true ); }, teardown:function() { if ( $.browser.msie ) return false; this.removeEventLi... | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | ;(function($) { $.each({ focus: 'focusin', blur: 'focusout' }, function( original, fix ){ $.event.special[fix] = { setup:function() { if ( $.browser.msie ) return false; this.addEventListener( original, $.event.special[fix].handler, true ); }, teardown:function() { if ( $.browser.msie ) return false;... |
jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | .bind('selectstart.ui', function() { return false; }); | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... |
}, function( original, fix ){ $.event.special[fix] = { setup:function() { if ( $.browser.msie ) return false; this.addEventListener( original, $.event.special[fix].handler, true ); }, teardown:function() { if ( $.browser.msie ) return false; this.removeEventListener( original, $.event.special[fix].handler, true ); }, h... | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | }, function( original, fix ){ $.event.special[fix] = { setup:function() { if ( $.browser.msie ) return false; this.addEventListener( original, $.event.special[fix].handler, true ); }, teardown:function() { if ( $.browser.msie ) return false; this.removeEventListener( original, $.event.special[fix... |
jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | scrollParent = this.parents().filter(function() { return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); }).eq(0); | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... |
return this.bind(type, function(event) { var target = $(event.target); if (target.is(delegate)) { return handler.apply(target, arguments); } }); | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | return this.bind(type, function(event) { var target = $(event.target); if (target.is(delegate)) { return handler.apply(target, arguments); } }); |
jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... | scrollParent = this.parents().filter(function() { return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); }).eq(0); | jQuery.ui||(function($){$.ui={version:"1.8",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode)... |
var expected = $('#list1').accordion({ | var expected = $('#list1').parent().height(300).end().accordion({ | test("resize", function() { var expected = $('#list1').accordion({ fillSpace: true }); var sizes = []; expected.find(".ui-accordion-content").each(function() { sizes.push($(this).outerHeight()); }); var actual = expected.accordion('resize'); equals(actual, expected, 'resize is chainable'); var sizes2 = []; expecte... |
same(sizes, [38, 38, 38]); | same(sizes, [246, 246, 246]); | test("resize", function() { var expected = $('#list1').accordion({ fillSpace: true }); var sizes = []; expected.find(".ui-accordion-content").each(function() { sizes.push($(this).outerHeight()); }); var actual = expected.accordion('resize'); equals(actual, expected, 'resize is chainable'); var sizes2 = []; expecte... |
return function(el, b, includeEl) { if(!el || !includeEl && el === b) return false; while(el && el !== b && (b = b[PARENT_NODE]) !== null); return el === b; }; | } : function(el, b) { if(!el || el === b) return false; while(el && el !== b && (b = b[PARENT_NODE]) !== null); return el === b; }; | return function(el, b, includeEl) { if(!el || !includeEl && el === b) return false; while(el && el !== b && (b = b[PARENT_NODE]) !== null); return el === b; }; |
var field = $(".cst-simpleTestField"); | var field = $(".cst-simpleTestField", myRepeatable.container); | repeatableTest.test("Add Functionality + applier/model consistency", function () { expect(7); var myRepeatable = basicSetup({text: "thyme"}); var field = $(".cst-simpleTestField"); var expectedModel = {myText: "oregano"}; jqUnit.assertEquals("Model is of lenth 1 initi... |
jqUnit.assertEquals("Before adding a row, first value is changed to 'oregano'", "oregano", $(".cst-simpleTestField").val()); jqUnit.assertDeepEq("After changing field to 'oregano', model should be 'oregano", expectedModel, fluid.model.getBeanValue(myRepeatable.model, myRepeatable.options.elPath)[0]); | jqUnit.assertEquals("Before adding a row, first value is changed to 'oregano'", "oregano", field.val()); jqUnit.assertDeepEq("After changing field to 'oregano', model should be 'oregano'", expectedModel, fluid.model.getBeanValue(myRepeatable.model, myRepeatable.options.elPath)[0]); | repeatableTest.test("Add Functionality + applier/model consistency", function () { expect(7); var myRepeatable = basicSetup({text: "thyme"}); var field = $(".cst-simpleTestField"); var expectedModel = {myText: "oregano"}; jqUnit.assertEquals("Model is of lenth 1 initi... |
jqUnit.assertEquals("After adding a row, first value is still 'oregano'", "oregano", field.val()); | jqUnit.assertEquals("After adding a row, first value is still 'oregano'", "oregano", $(".cst-simpleTestField", myRepeatable.container).val()); | repeatableTest.test("Add Functionality + applier/model consistency", function () { expect(7); var myRepeatable = basicSetup({text: "thyme"}); var field = $(".cst-simpleTestField"); var expectedModel = {myText: "oregano"}; jqUnit.assertEquals("Model is of lenth 1 initi... |
assert.soon( function() { return rp.checkSteadyState( state, expectedMasterHost, twoMasterOk, leftValues, rightValues, debug ); }, | state.forEach( function( i ) { stateSet[ i ] = true; } ); | assert.soon( function() { return rp.checkSteadyState( state, expectedMasterHost, twoMasterOk, leftValues, rightValues, debug ); }, |
player.model.width = width; player.model.height = height; player.css("width", width); player.css("height", height); player.sendEvent($.fn.jwplayer.events.JWPLAYER_MEDIA_RESIZE, { width: width, hieght: height }); | return function(width, height) { //TODO }; | |
expect(7); | expect(13); | test("resize", function() { expect(7); var hasResized = false; el = $('<div></div>').dialog({ resize: function(ev, ui) { if (!hasResized) { ok(true, 'resizing fires resize callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogresize', 'event type in callback'); same(ui, {}, 'ui h... |
same(ui, {}, 'ui hash in callback'); | ok(ui.originalPosition !== undefined, "ui.originalPosition in callback"); ok(ui.originalSize !== undefined, "ui.originalSize in callback"); ok(ui.position !== undefined, "ui.position in callback"); ok(ui.size !== undefined, "ui.size in callback"); | test("resize", function() { expect(7); var hasResized = false; el = $('<div></div>').dialog({ resize: function(ev, ui) { if (!hasResized) { ok(true, 'resizing fires resize callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogresize', 'event type in callback'); same(ui, {}, 'ui h... |
same(ui, {}, 'ui hash in event'); | ok(ui.originalPosition !== undefined, "ui.originalPosition in callback"); ok(ui.originalSize !== undefined, "ui.originalSize in callback"); ok(ui.position !== undefined, "ui.position in callback"); ok(ui.size !== undefined, "ui.size in callback"); | test("resize", function() { expect(7); var hasResized = false; el = $('<div></div>').dialog({ resize: function(ev, ui) { if (!hasResized) { ok(true, 'resizing fires resize callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogresize', 'event type in callback'); same(ui, {}, 'ui h... |
that.options.applier.modelChanged.addListener("fields", function (model, oldModel, changeRequest) { that.unsavedChanges = true; | that.options.dataContext.events.afterRemove.addListener(function () { that.events.afterRemove.fire(that.options.strings.removeSuccessfulMessage); | that.options.applier.modelChanged.addListener("fields", function (model, oldModel, changeRequest) { that.unsavedChanges = true; }); |
test( "outerWidth(true) - getter", function() { | test( "outerWidth - getter", function() { | test( "outerWidth(true) - getter", function() { var el = $( "#dimensions" ); equals( el.outerWidth(true), 154, "getter passthru w/ margin" ); el.hide(); equals( el.outerWidth(true), 154, "getter passthru w/ margin when hidden" );}); |
equals( el.outerWidth(true), 154, "getter passthru w/ margin" ); | equals( el.outerWidth(), 140, "getter passthru" ); | test( "outerWidth(true) - getter", function() { var el = $( "#dimensions" ); equals( el.outerWidth(true), 154, "getter passthru w/ margin" ); el.hide(); equals( el.outerWidth(true), 154, "getter passthru w/ margin when hidden" );}); |
equals( el.outerWidth(true), 154, "getter passthru w/ margin when hidden" ); | equals( el.outerWidth(), 140, "getter passthru when hidden" ); | test( "outerWidth(true) - getter", function() { var el = $( "#dimensions" ); equals( el.outerWidth(true), 154, "getter passthru w/ margin" ); el.hide(); equals( el.outerWidth(true), 154, "getter passthru w/ margin when hidden" );}); |
var adminUsers; testOpts.listeners = { afterRender: function () { adminUsers.userListEditor.details.events.afterRender.addListener(function () { adminUsers.userListEditor.details.events.afterRender.removeListener("initialSelect"); jqUnit.assertEquals("Selected username is", "Anastasia Cheethem", adminUsers.locate("user... | setupConfirmation(function (re, adminUsers) { return function () { adminUsers.userListEditor.details.events.afterRender.removeListener("initialSelect"); jqUnit.assertEquals("Selected username is", "Anastasia Cheethem", adminUsers.locate("userName").val()); jqUnit.notVisible("Confiration dialog is invisible initially", ... | adminUsersTest.test("Confirmation", function () { var adminUsers; testOpts.listeners = { afterRender: function () { adminUsers.userListEditor.details.events.afterRender.addListener(function () { adminUsers.userListEditor.details.events.afterRender.removeLis... |
}); | }) | .mouseenter(function() { self.activate($(this).parent()); }); |
drag('.ui-resizable-n', -1000, -1000); | drag('.ui-resizable-s', 1000, 1000); | test("maxHeight", function() { expect(3); el = $('<div></div>').dialog({ maxHeight: 400 }); drag('.ui-resizable-s', 1000, 1000); equals(heightAfter, 400, "maxHeight"); el.remove(); el = $('<div></div>').dialog({ maxHeight: 400 }); drag('.ui-resizable-n', -1000, -1000); equals(heightAfter, 400, "maxHeight"); el.remo... |
test("maxWidth", function() { | test("maxHeight", function() { | test("maxWidth", function() { expect(3); el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-e', 1000, 1000); equals(widthAfter, 400, "maxWidth"); el.remove(); el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-w', -1000, -1000); equals(widthAfter, 400, "maxWidth"); el.remove(); e... |
el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-e', 1000, 1000); equals(widthAfter, 400, "maxWidth"); | el = $('<div></div>').dialog({ maxHeight: 400 }); drag('.ui-resizable-s', 1000, 1000); equals(heightAfter, 400, "maxHeight"); | test("maxWidth", function() { expect(3); el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-e', 1000, 1000); equals(widthAfter, 400, "maxWidth"); el.remove(); el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-w', -1000, -1000); equals(widthAfter, 400, "maxWidth"); el.remove(); e... |
el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-w', -1000, -1000); equals(widthAfter, 400, "maxWidth"); | el = $('<div></div>').dialog({ maxHeight: 400 }); drag('.ui-resizable-n', -1000, -1000); equals(heightAfter, 400, "maxHeight"); | test("maxWidth", function() { expect(3); el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-e', 1000, 1000); equals(widthAfter, 400, "maxWidth"); el.remove(); el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-w', -1000, -1000); equals(widthAfter, 400, "maxWidth"); el.remove(); e... |
el = $('<div></div>').dialog({ maxWidth: 400 }).dialog('option', 'maxWidth', 600); drag('.ui-resizable-w', -1000, -1000); equals(widthAfter, 600, "maxWidth"); | el = $('<div></div>').dialog({ maxHeight: 400 }).dialog('option', 'maxHeight', 600); drag('.ui-resizable-n', -1000, -1000); equals(heightAfter, 600, "maxHeight"); | test("maxWidth", function() { expect(3); el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-e', 1000, 1000); equals(widthAfter, 400, "maxWidth"); el.remove(); el = $('<div></div>').dialog({ maxWidth: 400 }); drag('.ui-resizable-w', -1000, -1000); equals(widthAfter, 400, "maxWidth"); el.remove(); e... |
(options.modal && uiDialog.bind('keypress.ui-dialog', function(event) { if (event.keyCode != $.ui.keyCode.TAB) { return; } var tabbables = $(':tabbable', this), first = tabbables.filter(':first'), last = tabbables.filter(':last'); if (event.target == last[0] && !event.shiftKey) { first.focus(1); return false; } else... | $.each(buttons, function() { return !(hasButtons = true); })); | (options.modal && uiDialog.bind('keypress.ui-dialog', function(event) { if (event.keyCode != $.ui.keyCode.TAB) { return; } var tabbables = $(':tabbable', this), first = tabbables.filter(':first'), last = tabbables.filter(':last'); if (event.target == last[0] && !event.shiftKey) { first.focus(1); ... |
test("source, custom", function() { source_test(function(request, response) { same( request.term, "ja" ); response(["java", "javascript"]); }); | test("source, url string with remote json object array, only value properties", function() { source_test("remote_object_array_values.txt", true); | test("source, custom", function() { source_test(function(request, response) { same( request.term, "ja" ); response(["java", "javascript"]); });}); |
.bind('dialogclose.datepicker', function() { $.datepicker._hideDatepicker(input); }); | .bind('mouseout', function(){ $(this).removeClass('ui-state-hover'); if(this.className.indexOf('ui-datepicker-prev') != -1) $(this).removeClass('ui-datepicker-prev-hover'); if(this.className.indexOf('ui-datepicker-next') != -1) $(this).removeClass('ui-datepicker-next-hover'); }) | .bind('dialogclose.datepicker', function() { $.datepicker._hideDatepicker(input); }); |
test( ".widget() - overriden", function() { var wrapper = $( "<div></div>" ); | test( ".widget() - base", function() { | test( ".widget() - overriden", function() { var wrapper = $( "<div></div>" ); $.widget( "ui.testWidget", { _create: function() {}, widget: function() { return wrapper; } }); same( wrapper[0], $( "<div></div>" ).testWidget().testWidget( "widget" )[0] );}); |
_create: function() {}, widget: function() { return wrapper; } | _create: function() {} | test( ".widget() - overriden", function() { var wrapper = $( "<div></div>" ); $.widget( "ui.testWidget", { _create: function() {}, widget: function() { return wrapper; } }); same( wrapper[0], $( "<div></div>" ).testWidget().testWidget( "widget" )[0] );}); |
same( wrapper[0], $( "<div></div>" ).testWidget().testWidget( "widget" )[0] ); | var div = $( "<div></div>" ).testWidget(); same( div[0], div.testWidget( "widget" )[0]); | test( ".widget() - overriden", function() { var wrapper = $( "<div></div>" ); $.widget( "ui.testWidget", { _create: function() {}, widget: function() { return wrapper; } }); same( wrapper[0], $( "<div></div>" ).testWidget().testWidget( "widget" )[0] );}); |
(function($) { function jwplayer(selector) { if (selector === undefined) { selector = ".jwplayer:first"; } return { play: play(selector), pause: pause(selector), seek: seek(selector), stop: stop(selector), volume: volume(selector), mute: mute(selector), fullscreen: fullscreen(selector) }; } $.extend({ jwplayer: jwpl... | $('#' + nam).mouseup(function(evt) { evt.stopPropagation(); options.fullscreen = !options.fullscreen; fullscreenHandler(options); }); | (function($) { function jwplayer(selector) { if (selector === undefined) { selector = ".jwplayer:first"; } return { play: play(selector), pause: pause(selector), seek: seek(selector), stop: stop(selector), volume: volume(selector), mute: mute(selector), fullscreen: fullscreen(selector) }; } /** Ext... |
self.selectedItem = item; | setTimeout(function() { self.previous = previous; }, 1); | |
$.fn.jwplayerSkinner(player, function() { finishSetup(player); }); | return function(arg) { try { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": player.addEventListener($.fn.jwplayer.events.JWPLAYER_MEDIA_VOLUME, arg); break; case "number": player.media.volume(arg); return true; case "string": player.media.volume(parseInt(arg, 10)); return true; default: return player.model.... | $.fn.jwplayerSkinner(player, function() { finishSetup(player); }); |
return jwplayer(player); | return jwplayer(player.id); | return function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, $.fn.jwplayer.events.JWPLAYER_PLAYER_STATE, arg); break; default: return $.fn.jwplayerController.mediaInfo(player).state; } return jwplayer(player); }; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.