code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/**
* editable_selects.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
var TinyMCE_EditableSelects = {
editSelectElm : null,
init : function() {
var nl = document.getEl... | JavaScript |
/**
* mctabs.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
function MCTabs() {
this.settings = [];
this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tiny... | JavaScript |
/**
* validate.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
/**
// String validation:
if (!Validator.isEmail('myemail'))
alert('Invalid email.');
// Form validatio... | JavaScript |
/**
* form_utils.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
func... | JavaScript |
tinyMCE.addI18n({en:{
common:{
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
apply:"Apply",
insert:"Insert",
update:"Update",
cancel:"Cancel",
close:"Close",
browse:"Browse",
class_name:"Class",
not_set:"-- Not set --",
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.",
cl... | JavaScript |
(function($){
$.ui.dialog.prototype.options.closeOnEscape = false;
$.widget('wp.wpdialog', $.ui.dialog, {
// Work around a bug in jQuery UI 1.9.1.
// http://bugs.jqueryui.com/ticket/8805
widgetEventPrefix: 'wpdialog',
open: function() {
var ed;
// Initialize tinyMCEPopup if it exists and the editor is... | JavaScript |
/**
* popup.js
*
* An altered version of tinyMCEPopup to work in the same window as tinymce.
*
* ------------------------------------------------------------------
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.m... | JavaScript |
/* global tinymce */
(function() {
tinymce.create('tinymce.plugins.WPDialogs', {
init : function( ed ) {
tinymce.create('tinymce.WPWindowManager:tinymce.InlineWindowManager', {
WPWindowManager : function(ed) {
this.parent(ed);
},
open : function(f, p) {
var t = this, element;
if ( ! f... | JavaScript |
/* global tinymce:false, switchEditors, fullscreen */
/**
* WP Fullscreen TinyMCE plugin
*
* Contains code from Moxiecode Systems AB released under LGPL http://tinymce.moxiecode.com/license
*/
(function() {
tinymce.create('tinymce.plugins.wpFullscreenPlugin', {
resize_timeout: false,
init : function( ed ) {
... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
var DOM = tinymce.DOM, Element = tinymce.dom.Element, Event = tinymce.dom.Event, each ... | JavaScript |
(function() {
var url;
if (url = tinyMCEPopup.getParam("media_external_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
function get(id) {
return document.getElementById(id);
}
function clone(obj) ... | JavaScript |
/**
* This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
*/
function writeFlash(p) {
writeEmbed(
'D27CDB6E-AE6D-11cf-96B8-444553540000',
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
'application/x-shockwave... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
var rootAttributes = tinymce.explode('id,name,width,height,style,align,class,hspace,vs... | JavaScript |
/* global tinymce */
(function() {
tinymce.create('tinymce.plugins.wpGallery', {
init : function(ed, url) {
var t = this;
t.url = url;
t.editor = ed;
t._createButtons();
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...');
ed.addCommand('WP_Gallery'... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
var DOM = tinymce.DOM;
// State Transfer function
var transferState = function(oldE... | JavaScript |
var tinymce = null, tinyMCEPopup, tinyMCE, wpImage;
tinyMCEPopup = {
init: function() {
var t = this, w, ti;
// Find window & API
w = t.getWin();
tinymce = w.tinymce;
tinyMCE = w.tinyMCE;
t.editor = tinymce.EditorManager.activeEditor;
t.params = t.editor.windowManager.params;
t.features = t.editor.w... | JavaScript |
/* global tinymce */
(function() {
var mouse = {};
tinymce.create('tinymce.plugins.wpEditImage', {
url: '',
editor: {},
init: function(ed, url) {
var t = this;
t.url = url;
t.editor = ed;
t._createButtons();
ed.addCommand('WP_EditImage', t._editImage);
ed.onInit.add(function(ed) {
ed.... | JavaScript |
tinyMCEPopup.requireLangPack();
var PasteTextDialog = {
init : function() {
this.resize();
},
insert : function() {
var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;
// Convert linebreaks into paragraphs
if (document.getElementById('linebreaks').checked) {
lines = h.spli... | JavaScript |
tinyMCEPopup.requireLangPack();
var PasteWordDialog = {
init : function() {
var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = '';
// Create iframe
el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></if... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
var each = tinymce.each,
defs = {
paste_auto_cleanup_on_paste : true,
paste_en... | JavaScript |
/* global tinymce */
(function() {
tinymce.create('tinymce.plugins.wpLink', {
/**
* Initializes the plugin, this will be executed after the plugin has been created.
* This call is done before the editor instance has finished its initialization so use the onInit event
* of the editor instance to intercept t... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, explode = tinym... | JavaScript |
/* global tinymce, getUserSetting, setUserSetting, switchEditors, autosave */
/**
* WordPress plugin.
*/
(function() {
var DOM = tinymce.DOM;
tinymce.create('tinymce.plugins.WordPress', {
init : function(ed, url) {
var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nex... | JavaScript |
/* global tinymce */
/**
* WordPress View plugin.
*/
(function() {
var VK = tinymce.VK,
TreeWalker = tinymce.dom.TreeWalker,
selected;
tinymce.create('tinymce.plugins.wpView', {
init : function( editor ) {
var wpView = this;
// Check if the `wp.mce` API exists.
if ( typeof wp === 'undefined' || ! ... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
tinymce.create('tinymce.plugins.Directionality', {
init : function(ed, url) {
var... | JavaScript |
tinyMCEPopup.requireLangPack();
function init() {
var ed, tcont;
tinyMCEPopup.resizeToInnerSize();
ed = tinyMCEPopup.editor;
// Give FF some time
window.setTimeout(insertHelpIFrame, 10);
tcont = document.getElementById('plugintablecontainer');
document.getElementById('plugins_tab').style.display = 'none';
... | JavaScript |
tinyMCEPopup.requireLangPack();
var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false;
var colors = [
"#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033",
"#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099",
"#6600cc","#660... | JavaScript |
tinyMCEPopup.requireLangPack();
var AnchorDialog = {
init : function(ed) {
var action, elm, f = document.forms[0];
this.editor = ed;
elm = ed.dom.getParent(ed.selection.getNode(), 'A');
v = ed.dom.getAttrib(elm, 'name') || ed.dom.getAttrib(elm, 'id');
if (v) {
this.action = 'update';
f.anchorName.va... | JavaScript |
/**
* charmap.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
tinyMCEPopup.requireLangPack();
var charmap = [
[' ', ' ', true, 'no-break space'],
['&', ... | JavaScript |
tinyMCEPopup.requireLangPack();
tinyMCEPopup.onInit.add(onLoadInit);
function saveContent() {
tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true});
tinyMCEPopup.close();
}
function onLoadInit() {
tinyMCEPopup.resizeToInnerSize();
// Remove Gecko spellchecking
if (tin... | JavaScript |
var ImageDialog = {
preInit : function() {
var url;
tinyMCEPopup.requireLangPack();
if (url = tinyMCEPopup.getParam("external_image_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
},
init : fun... | JavaScript |
tinyMCEPopup.requireLangPack();
var LinkDialog = {
preInit : function() {
var url;
if (url = tinyMCEPopup.getParam("external_link_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
},
init : functio... | JavaScript |
/**
* editor_template_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function(tinymce) {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend, ea... | JavaScript |
/* global getUserSetting, tinymce, QTags, wpActiveEditor */
// WordPress, TinyMCE, and Media
// -----------------------------
(function($){
// Stores the editors' `wp.media.controller.Frame` instances.
var workflows = {};
wp.media.string = {
// Joins the `props` and `attachment` objects,
// outputting the prop... | JavaScript |
/*
http://www.JSON.org/json2.js
2011-02-23
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE... | JavaScript |
/*!
* jQuery serializeObject - v0.2 - 1/20/2010
* http://benalman.com/projects/jquery-misc-plugins/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Whereas .serializeArray() serializes a form into an array, .serializeObject()
... | JavaScript |
(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+"... | JavaScript |
/******************************************************************************************************************************
* @ Original idea by by Binny V A, Original version: 2.00.A
* @ http://www.openjs.com/scripts/events/keyboard_shortcuts/
* @ Original License : BSD
* @ jQuery Plugin by Tzury Bar Yocha... | JavaScript |
/*!
* jQuery Form Plugin
* version: 3.37.0-2013.07.11
* @requires jQuery v1.5 or later
* Copyright (c) 2013 M. Alsup
* Examples and documentation at: http://malsup.com/jquery/form/
* Project repository: https://github.com/malsup/form
* Dual licensed under the MIT and GPL licenses.
* https://github.com/malsup/fo... | JavaScript |
(function($){
$.fn.filter_visible = function(depth) {
depth = depth || 3;
var is_visible = function() {
var p = $(this), i;
for(i=0; i<depth-1; ++i) {
if (!p.is(':visible')) return false;
p = p.parent();
}
return true;
};
return this.filter(is_visible);
};
$.table_hotkeys = function(table... | JavaScript |
/* global _wpMediaModelsL10n:false */
window.wp = window.wp || {};
(function($){
var Attachment, Attachments, Query, compare, l10n, media;
/**
* wp.media( attributes )
*
* Handles the default media experience. Automatically creates
* and opens a media frame, and returns the result.
* Does nothing if the c... | JavaScript |
/* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, fullscreen, prompt */
/*
* Quicktags
*
* This is the HTML editor in WordPress. It can be attached to any textarea and will
* append a toolbar above it. This script is self-contained (does not require external libraries).
*
* Run quicktags(settings) to in... | JavaScript |
/**
* Heartbeat API
*
* Note: this API is "experimental" meaning it will likely change a lot
* in the next few releases based on feedback from 3.6.0. If you intend
* to use it, please follow the development closely.
*
* Heartbeat is a simple server polling API that sends XHR requests to
* the server every 15 - ... | JavaScript |
// ===================================================================
// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
//
// NOTICE: You may use this code for any purpose, commercial or
// private, without any further permission from the author. You may
// remove this notice from your final... | JavaScript |
window.wp = window.wp || {};
(function( exports, $ ){
var api, extend, ctor, inherits,
slice = Array.prototype.slice;
/* =====================================================================
* Micro-inheritance - thank you, backbone.js.
* ===================================================================== *... | JavaScript |
(function(w) {
var init = function() {
var pr = document.getElementById('post-revisions'),
inputs = pr ? pr.getElementsByTagName('input') : [];
pr.onclick = function() {
var i, checkCount = 0, side;
for ( i = 0; i < inputs.length; i++ ) {
checkCount += inputs[i].checked ? 1 : 0;
side = inputs[i].ge... | JavaScript |
// Utility functions for parsing and handling shortcodes in Javascript.
// Ensure the global `wp` object exists.
window.wp = window.wp || {};
(function(){
wp.shortcode = {
// ### Find the next matching shortcode
//
// Given a shortcode `tag`, a block of `text`, and an optional starting
// `index`, returns th... | JavaScript |
var wpAjax = jQuery.extend( {
unserialize: function( s ) {
var r = {}, q, pp, i, p;
if ( !s ) { return r; }
q = s.split('?'); if ( q[1] ) { s = q[1]; }
pp = s.split('&');
for ( i in pp ) {
if ( jQuery.isFunction(pp.hasOwnProperty) && !pp.hasOwnProperty(i) ) { continue; }
p = pp[i].split('=');
r[p[0]... | JavaScript |
/* global ajaxurl, wpAjax */
(function($) {
var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList;
wpList = {
settings: {
url: ajaxurl, type: 'POST',
response: 'ajax-response',
what: '',
alt: 'alternate', altOffset: 0,
addColor: null, delColor: null, dimAddColor: ... | JavaScript |
(function( exports, $ ){
var api = wp.customize,
debounce;
debounce = function( fn, delay, context ) {
var timeout;
return function() {
var args = arguments;
context = context || this;
clearTimeout( timeout );
timeout = setTimeout( function() {
timeout = null;
fn.apply( context, args );
... | JavaScript |
/* global mejs, _wpmejsSettings */
(function ($) {
// add mime-type aliases to MediaElement plugin support
mejs.plugins.silverlight[0].types.push('video/x-ms-wmv');
mejs.plugins.silverlight[0].types.push('audio/x-ms-wma');
$(function () {
var settings = {};
if ( typeof _wpmejsSettings !== 'undefined' )
set... | JavaScript |
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
if ( typeof tb_pathToImage != 'string' ) {
var tb_pathToImage = thickboxL10n.loadingAnimation;
}
/... | JavaScript |
/* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */
(function($){
var media = wp.media,
Attachment = media.model.Attachment,
Attachments = media.model.Attachments,
l10n;
// Link any localized strings.
l10n = media.view.l10n = typeof _wpMediaViewsL10n === 'undefined' ? {} : _wpMediaV... | JavaScript |
/* global _zxcvbnSettings */
(function() {
var async_load = function() {
var first, s;
s = document.createElement('script');
s.src = _zxcvbnSettings.src;
s.type = 'text/javascript';
s.async = true;
first = document.getElementsByTagName('script')[0];
return first.parentNode.insertBefore(s, ... | JavaScript |
/* global _wpUtilSettings */
window.wp = window.wp || {};
(function ($) {
// Check for the utility settings.
var settings = typeof _wpUtilSettings === 'undefined' ? {} : _wpUtilSettings;
/**
* wp.template( id )
*
* Fetches a template by id.
*
* @param {string} id A string that corresponds to a DOM ele... | JavaScript |
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: j... | JavaScript |
function w3tc_seconds_to_string(seconds) {
var string = '', days, hours, minutes;
days = Math.floor(seconds / 86400);
if (days) {
seconds -= days * 86400;
string += days + 'd ';
}
hours = Math.floor(seconds / 3600);
if (hours) {
seconds -= hours * 3600;
string += ... | JavaScript |
function w3tc_popup(url, name, width, height) {
if (width === undefined) {
width = 800;
}
if (height === undefined) {
height = 600;
}
return window.open(url, name, 'width=' + width + ',height=' + height + ',status=no,toolbar=no,menubar=no,scrollbars=yes');
}
function w3tc_input_ena... | JavaScript |
var W3tc_Lightbox = {
window: jQuery(window),
container: null,
options: null,
create: function() {
var me = this;
this.container = jQuery('<div class="' + this.options.id + ' lightbox-loading"><div class="lightbox-close">' + this.options.close + '</div><div class="lightbox-content"></d... | JavaScript |
jQuery(function() {
var ajaxurl = window.ajaxurl;
jQuery('.w3tc-widget-ps-view-all').click(function() {
window.open('admin.php?page=w3tc_dashboard&w3tc_test_pagespeed_results&_wpnonce=' + jQuery(this).metadata().nonce, 'pagespeed_results', 'width=800,height=600,status=no,toolbar=no,menubar=no,scrollbars... | JavaScript |
jQuery( function ( $ ) {
$( '.switch-have-key' ).click( function() {
var no_key = $( this ).parents().find('div.no-key');
var have_key = $( this ).parents().find('div.have-key');
no_key.addClass( 'hidden' );
have_key.removeClass( 'hidden' );
return false;
});
$( 'p.need-key a' ).click( function()... | JavaScript |
/**
* navigation.js
*
* Handles toggling the navigation menu for small screens.
*/
( function() {
var nav = document.getElementById( 'site-navigation' ), button, menu;
if ( ! nav )
return;
button = nav.getElementsByTagName( 'h3' )[0];
menu = nav.getElementsByTagName( 'ul' )[0];
if ( ! button )
return;
... | JavaScript |
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
* Things like site title, description, and background color changes.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( val... | JavaScript |
/**
* navigation.js
*
* Handles toggling the navigation menu for small screens.
*/
( function() {
var nav = document.getElementById( 'site-navigation' ), button, menu;
if ( ! nav )
return;
button = nav.getElementsByTagName( 'h3' )[0];
menu = nav.getElementsByTagName( 'ul' )[0];
if ( ! button )
return;
... | JavaScript |
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
* Things like site title, description, and background color changes.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( val... | JavaScript |
load('../ext-lib/jasmine-reporters/ext/env.rhino.1.2.js');
Envjs.scriptTypes['text/javascript'] = true;
var specFile = arguments[0];
console.log("Loading: " + specFile);
window.location = specFile
| JavaScript |
describe("Searching by tags", function () {
it("should find tags by name", function () {
expect(model.containsTag(['name'], 'name')).toBeTruthy();
expect(model.containsTag(['x', 'y', 'z'], 'y')).toBeTruthy();
expect(model.containsTag([], 'name')).not.toBeTruthy();
expect(model.conta... | JavaScript |
window.teardownFailureOutput = {};
window.teardownFailureOutput["suite"] = [1,2,0,0,[],[0,0,21,3],[[4,5,0,0,[],[0,4,14,6],[],[[7,0,1,0,[],[0,8,3,6],[[0,8,0,9,10,[1,9,1],[],[[10,2,10]]]]],[11,0,1,0,[],[0,11,6,12],[[0,13,0,14,15,[0,12,4],[],[[16,4,15]]]]]],[],[2,0,2,0]]],[],[[2,13,0,14,0,[0,19,2],[],[[20,4,16]]]],[2,0,2... | JavaScript |
window.suiteOutput = {};
window.suiteOutput["suite"] = [1,2,0,3,[4,5],[1,0,159],[],[[6,7,1,8,[9,10],[1,44,115],[[0,11,0,12,13,[1,45,102],[],[[146,2,14]]],[3,15,0,0,0,[1,148,10],[[4,16,0,0,0,[1,149,5],[[0,17,0,0,18,[1,150,4],[[0,19,0,20,21,[1,152,1],[],[[153,2,22]]]],[]]],[]],[4,23,0,0,0,[1,155,3],[[0,17,0,0,18,[1,155,... | JavaScript |
window.messagesOutput = {};
window.messagesOutput["suite"] = [1,2,0,0,[],[1,0,19],[],[[3,0,1,0,[],[1,4,14],[[0,4,0,5,6,[1,5,1],[],[[6,2,7]]],[0,4,0,5,8,[1,7,1],[],[[8,2,8]]],[0,4,0,5,9,[1,9,1],[],[[9,3,11]]],[0,12,0,13,14,[1,11,1],[],[[12,2,15],[12,0,16]]],[0,4,0,5,17,[1,13,1],[],[[13,0,18],[13,1,19],[14,0,20]]],[0,4,... | JavaScript |
window.passingFailingOutput = {};
window.passingFailingOutput["suite"] = [1,2,0,0,[],[0,0,14],[],[[3,0,1,0,[],[1,4,2],[[0,4,0,5,6,[1,5,1],[],[[5,2,6]]]]],[7,0,1,0,[],[0,11,3,8],[[0,9,0,10,8,[0,12,1],[],[[13,4,8]]]]]],[],[2,1,2,1]];
window.passingFailingOutput["strings"] = [];
window.passingFailingOutput["strings"] =... | JavaScript |
window.testsAndKeywordsOutput = {};
window.testsAndKeywordsOutput["suite"] = [1,2,0,0,[],[1,0,25],[],[[3,0,1,0,[],[1,4,12],[[0,4,0,0,0,[1,5,2],[[0,5,0,6,0,[1,6,1],[],[]]],[]],[0,7,0,0,0,[1,8,2],[[0,5,0,6,0,[1,9,0],[],[]]],[]],[0,8,0,0,0,[1,10,2],[[0,5,0,6,0,[1,11,1],[],[]]],[]],[0,9,0,0,0,[1,13,2],[[0,5,0,6,0,[1,14,1]... | JavaScript |
window.setupsAndTeardownsOutput = {};
window.setupsAndTeardownsOutput["suite"] = [1,2,0,0,[],[1,0,16],[],[[3,0,1,0,[],[1,5,9],[[1,4,0,5,6,[1,6,1],[],[[7,2,6]]],[0,7,0,0,0,[1,8,4],[[0,8,0,9,0,[1,9,1],[],[]],[2,4,0,5,10,[1,10,1],[],[[11,2,10]]]],[]],[2,4,0,5,11,[1,12,1],[],[[13,2,11]]]]]],[[1,4,0,5,12,[1,4,1],[],[[5,2,1... | JavaScript |
describe("LogLevelController", function() {
function checkCombination(min_level, default_level, should_show, expected_default, show_trace) {
var controller = LogLevelController(min_level, default_level);
expect(controller.showLogLevelSelector()).toEqual(should_show);
if(should_show){
... | JavaScript |
describe("Text decoder", function () {
function multiplyString(string, times) {
var result = "";
for (var i = 0; i < times; i++){
result += string;
}
return result;
}
it("should have empty string with id 0", function () {
var strings = window.testdata.ge... | JavaScript |
window.output = {};
describe("Statistics", function () {
var totals = [
{label: "Critical Tests",
pass: 1,
fail: 1},
{label: "All Tests",
pass: 2,
fail: 3}
];
var tags = [
{label: "first tag",
pass: 3,
fail: 0,
... | JavaScript |
/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
*
* @namespace
*/
var jasmine = {};
/**
* @private
*/
jasmine.unimplementedMethod_ = function() {
throw new Error("unimplemented method");
};
/**
* Use <code>jasmine.undefined</code> instead of <code>undefined</code>,... | JavaScript |
jasmine.TrivialReporter = function(doc) {
this.document = doc || document;
this.suiteDivs = {};
this.logRunningSpecs = false;
};
jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) {
var el = document.createElement(type);
for (var i = 2; i < arguments.length; i++) {
var ... | JavaScript |
window.model = (function () {
function Suite(data) {
var suite = createModelObject(data, "s");
suite.source = data.source;
suite.relativeSource = data.relativeSource;
suite.fullName = data.parent ? data.parent.fullName + "." + data.name : data.name;
setStats(suite, data.stat... | JavaScript |
window.testdata = function () {
var elementsById = {};
var idCounter = 0;
var _statistics = null;
var LEVELS = ['TRACE', 'DEBUG', 'INFO', 'WARN', 'FAIL', 'ERROR'];
var STATUSES = ['FAIL', 'PASS', 'NOT_RUN'];
var KEYWORDS = ['KEYWORD', 'SETUP', 'TEARDOWN', 'FOR', 'VAR'];
function addElement... | JavaScript |
window.util = function () {
function map(elems, func){
var ret = [];
for (var i=0; i<elems.length; i++) {
ret[i] = func(elems[i]);
}
return ret;
}
function filter(elems, predicate) {
var ret = [];
for (var i=0; i<elems.length; i++) {
... | JavaScript |
window.fileLoading = (function () {
var fileLoadingCallbacks = {};
var timestamp = new Date().getTime();
function loadKeywordsFile(filename, callback) {
fileLoadingCallbacks[filename] = callback;
var script = document.createElement('script');
script.type = 'text/javascript';
... | JavaScript |
function removeJavaScriptDisabledWarning() {
// Not using jQuery here for maximum speed
document.getElementById('javascript_disabled').style.display = 'none';
}
function addJavaScriptDisabledWarning() {
document.getElementById('javascript_disabled').style.display = 'block';
}
function initLayout(suiteName... | JavaScript |
var LEVELS = {TRACE: 0, DEBUG: 1, INFO: 2, WARN: 3, FAIL: 4, NONE: 5};
function toggleSuite(suiteId) {
toggleElement(suiteId, ['keyword', 'suite', 'test']);
}
function toggleTest(testId) {
toggleElement(testId, ['keyword']);
}
function toggleKeyword(kwId) {
toggleElement(kwId, ['keyword', 'message']);
}
... | JavaScript |
/// --------------------------------------------------
/// mainScreen object
/// --------------------------------------------------
console.log('::INCLUDE');
var mainScreen =
{
result : null, // Page method execution result
mainModalExtender : null, // modalExtender object... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.AP == 'undefined')
Mods.AP = {};
Mods.AP.CreateOrderAuto = {
Init: function () {
this.Grid.Load();
},
Grid: {
GridUrl: FWS.Web.Core.URL.ContextData,
GridId: '#CreateOrderAuto_Grid',
GridPager: ... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.AP == 'undefined')
Mods.AP = {};
$('#AP-Payment-Del').live('click', function () {
var $grid = $('#Payment_Grid');
//console.log($grid);
//console.log($grid.getDataIDs());
var data = $grid.getRowData();
console.log('::DATA... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Items == 'undefined')
Mods.AP = {};
var NumRow = 1;
var Precision = 0;
var Groupseparator = ',';
var ObjMesseage = {
SaveConfirm:'Bạn muốn lưu đơn đặt hàng này?',
SaveTitle:'Lưu đơn đặt hàng'
};
Mods.AP.Order = {
ServiceUrl: '..... | JavaScript |
if (typeof Mods == 'undefined') Mods = {};
if (typeof Mods.Db == 'undefined') Mods.ReportDoc = {};
Mods.ReportDoc.ReportTBP = {
init: function () {
var filterID = '';
if (FWS.Web.CTemplateController.CurrentContentOptions != null) {
filterID = FWS.Web.CTemplateController.CurrentC... | JavaScript |
if (typeof Mods == 'undefined') Mods = {};
if (typeof Mods.Db == 'undefined') Mods.ReportDoc = {};
Mods.ReportDoc.ReportTBGT = {
init: function () {
var filterID = '';
if (FWS.Web.CTemplateController.CurrentContentOptions != null) {
filterID = FWS.Web.CTemplateController.Current... | JavaScript |
//--------------------------------------------------------------------------------------------------
// FWS.Web.CTemplateController Object
//--------------------------------------------------------------------------------------------------
if (typeof (FWS) == 'undefined')
FWS = {};
if (typeof (FWS.Web) == 'un... | JavaScript |
/*
* Author: sang.t.phan
* Created Date: 2011/12/30
*/
function SelectAccordion(modid) {
var modTitle = $("#Accordion-Menu div[moduleid='" + modid + "']").attr("modtitle");
if (modTitle != null) {
$("#Accordion-Menu").accordion("select", modTitle);
}
}
function SelectTree(nodeId) {
v... | JavaScript |
function COverlay(options) {
var self = this;
this.GuidGenerator = function () {
var S4 = function () {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
};
return (S4() + S4());
};
this._container = 'body';
this._options = {
... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Accounts == 'undefined')
Mods.Accounts = {};
Mods.Accounts.Login = {
Init: function () {
this.Event();
this.GetLanguageList();
this.GetClientGroupList();
},
DefaultInit: function (opts) {
$("inpu... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Accounts == 'undefined')
Mods.Accounts = {};
Mods.Accounts.Role = {
Properties: {
GroupID: function () {
console.log($("#GroupUser-Role").combobox('getValue'));
return $("#GroupUser-Role").combobox('getValu... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Accounts == 'undefined')
Mods.Accounts = {};
Mods.Accounts.Config = {
Init: function () {
this.Grid.Load();
this.Event();
},
Properties: {
windowID: ""
},
DefaultInit: function (opts) {
... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Accounts == 'undefined')
Mods.Accounts = {};
Mods.Accounts.ConfigEntry = {
Init: function () {
this.Event();
},
Properties: {
windowID: "",
rowID: ""
},
DefaultInit: function (opts) {
v... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.CoreFilter == 'undefined')
Mods.CoreFilter = {};
Mods.CoreFilter.Filter = {
Properties: {
windowID: "",
rowID: "0"
},
Init: function (opts) {
var filterID = opts.filterID;
if (opts.options) {
... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Core == 'undefined')
Mods.Core = {};
Mods.Core.EmployeeDepartment = {
ObjMesseage: {
ActionTitle: 'Thong bao',
DeleteTitle: 'Xóa Phong Ban',
DeleteConfirm: 'Bạn có chắc muốn xóa Phong Ban này?'
},
Options... | JavaScript |
/*
Phi Nam Edited
*/
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Core == 'undefined')
Mods.Core = {};
Mods.Core.EmployeeDepartmentList = {
DefaultInit: function (opts) {
var windowID = "#" + opts.id;
var rowID = opts.rowID;
this.Properties.windowID = wi... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.