code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/**
* @class Ext.picker.Date
* @extends Ext.Component
* <p>A date picker. This class is used by the {@link Ext.form.field.Date} field to allow browsing and
* selection of valid dates in a popup next to the field, but may also be used with other components.</p>
* <p>Typically you will need to implement a handler fu... | JavaScript |
/**
* @class Ext.picker.Color
* @extends Ext.Component
* <p>ColorPicker provides a simple color palette for choosing colors. The picker can be rendered to any container.
* The available default to a standard 40-color palette; this can be customized with the {@link #colors} config.</p>
* <p>Typically you will need ... | JavaScript |
/**
* @class Ext.fx.Anim
*
* This class manages animation for a specific {@link #target}. The animation allows
* animation of various properties on the target, such as size, position, color and others.
*
* ## Starting Conditions
* The starting conditions for the animation are provided by the {@link #from} conf... | JavaScript |
/**
* @class Ext.fx.Manager
* Animation Manager which keeps track of all current animations and manages them on a frame by frame basis.
* @private
* @singleton
*/
Ext.define('Ext.fx.Manager', {
/* Begin Definitions */
singleton: true,
requires: ['Ext.util.MixedCollection',
'Ext.fx.ta... | JavaScript |
/**
* @class Ext.fx.Easing
*
This class contains a series of function definitions used to modify values during an animation.
They describe how the intermediate values used during a transition will be calculated. It allows for a transition to change
speed over its duration. The following options are available:
- li... | JavaScript |
/**
* @class Ext.fx.Queue
* Animation Queue mixin to handle chaining and queueing by target.
* @private
*/
Ext.define('Ext.fx.Queue', {
requires: ['Ext.util.HashMap'],
constructor: function() {
this.targets = Ext.create('Ext.util.HashMap');
this.fxQueue = {};
},
// @private
g... | JavaScript |
/**
* @class Ext.fx.CubicBezier
* @ignore
*/
Ext.define('Ext.fx.CubicBezier', {
/* Begin Definitions */
singleton: true,
/* End Definitions */
cubicBezierAtTime: function(t, p1x, p1y, p2x, p2y, duration) {
var cx = 3 * p1x,
bx = 3 * (p2x - p1x) - cx,
ax = 1 - cx - ... | JavaScript |
/**
* @class Ext.fx.PropertyHandler
* @ignore
*/
Ext.define('Ext.fx.PropertyHandler', {
/* Begin Definitions */
requires: ['Ext.draw.Draw'],
statics: {
defaultHandler: {
pixelDefaults: ['width', 'height', 'top', 'left'],
unitRE: /^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|p... | JavaScript |
/**
* @class Ext.fx.Animator
* Animation instance
This class is used to run keyframe based animations, which follows the CSS3 based animation structure.
Keyframe animations differ from typical from/to animations in that they offer the ability to specify values
at various points throughout the animation.
__Using K... | JavaScript |
/**
* @class Ext.state.CookieProvider
* @extends Ext.state.Provider
* A Provider implementation which saves and retrieves state via cookies.
* The CookieProvider supports the usual cookie options, such as:
* <ul>
* <li>{@link #path}</li>
* <li>{@link #expires}</li>
* <li>{@link #domain}</li>
* <li>{@link #secu... | JavaScript |
/**
* @class Ext.state.Manager
* This is the global state manager. By default all components that are "state aware" check this class
* for state information if you don't pass them a custom state provider. In order for this class
* to be useful, it must be initialized with a provider when your application initialize... | JavaScript |
/**
* @class Ext.state.Stateful
* A mixin for being able to save the state of an object to an underlying
* {@link Ext.state.Provider}.
*/
Ext.define('Ext.state.Stateful', {
/* Begin Definitions */
mixins: {
observable: 'Ext.util.Observable'
},
requires: ['Ext.state.Manager'],
... | JavaScript |
/**
* @class Ext.state.Provider
* <p>Abstract base class for state provider implementations. The provider is responsible
* for setting values and extracting values to/from the underlying storage source. The
* storage source can vary and the details should be implemented in a subclass. For example
* a provider co... | JavaScript |
Ext.define('Ext.state.LocalStorageProvider', {
/* Begin Definitions */
extend: 'Ext.state.Provider',
alias: 'state.localstorage',
/* End Definitions */
constructor: function(){
var me = this;
me.callParent(arguments);
me.store = me.getStorageObject();
... | JavaScript |
/**
* @class Ext.LoadMask
* A simple utility class for generically masking elements while loading data. If the {@link #store}
* config option is specified, the masking will be automatically synchronized with the store's loading
* process and the mask element will be cached for reuse.
* <p>Example usage:</p>
* <p... | JavaScript |
/**
* @class Ext.Component
* @extends Ext.AbstractComponent
* <p>Base class for all Ext components. All subclasses of Component may participate in the automated
* Ext component lifecycle of creation, rendering and destruction which is provided by the {@link Ext.container.Container Container} class.
* Components m... | JavaScript |
/**
* @class Ext.direct.Manager
* <p><b><u>Overview</u></b></p>
*
* <p>Ext.Direct aims to streamline communication between the client and server
* by providing a single interface that reduces the amount of common code
* typically required to validate data and handle returned data packets
* (reading data, error c... | JavaScript |
/**
* @class Ext.direct.Transaction
* @extends Object
* <p>Supporting Class for Ext.Direct (not intended to be used directly).</p>
* @constructor
* @param {Object} config
*/
Ext.define('Ext.direct.Transaction', {
/* Begin Definitions */
alias: 'direct.transaction',
alternateClassName: 'Ext.Di... | JavaScript |
/**
* @class Ext.direct.RemotingEvent
* @extends Ext.direct.Event
* An event that is fired when data is received from a
* {@link Ext.direct.RemotingProvider}. Contains a method to the
* related transaction for the direct request, see {@link #getTransaction}
*/
Ext.define('Ext.direct.RemotingEvent', {
/*... | JavaScript |
/**
* Small utility class used internally to represent a Direct method.
* Thi class is used internally.
* @class Ext.direct.RemotingMethod
* @ignore
*/
Ext.define('Ext.direct.RemotingMethod', {
constructor: function(config){
var me = this,
params = Ext.isDefined(config.params) ? config... | JavaScript |
/**
* @class Ext.direct.ExceptionEvent
* @extends Ext.direct.RemotingEvent
* An event that is fired when an exception is received from a {@link Ext.direct.RemotingProvider}
*/
Ext.define('Ext.direct.ExceptionEvent', {
/* Begin Definitions */
extend: 'Ext.direct.RemotingEvent',
alias: 'dire... | JavaScript |
/**
* @class Ext.direct.Provider
* <p>Ext.direct.Provider is an abstract class meant to be extended.</p>
*
* <p>For example ExtJs implements the following subclasses:</p>
* <pre><code>
Provider
|
+---{@link Ext.direct.JsonProvider JsonProvider}
|
+---{@link Ext.direct.PollingProvider PollingProvider}
... | JavaScript |
/**
* @class Ext.direct.JsonProvider
* @extends Ext.direct.Provider
A base provider for communicating using JSON. This is an abstract class
and should not be instanced directly.
* @markdown
* @abstract
*/
Ext.define('Ext.direct.JsonProvider', {
/* Begin Definitions */
extend: 'Ext.direct.Provi... | JavaScript |
/**
* @class Ext.direct.Event
* A base class for all Ext.direct events. An event is
* created after some kind of interaction with the server.
* The event class is essentially just a data structure
* to hold a direct response.
*
* @constructor
* @param {Object} config The config object
*/
Ext.define('Ext.direc... | JavaScript |
/**
* @class Ext.direct.RemotingProvider
* @extends Ext.direct.JsonProvider
*
* <p>The {@link Ext.direct.RemotingProvider RemotingProvider} exposes access to
* server side methods on the client (a remote procedure call (RPC) type of
* connection where the client can initiate a procedure on the server).</p>
*
... | JavaScript |
/**
* @class Ext.ComponentManager
* @extends Ext.AbstractManager
* <p>Provides a registry of all Components (instances of {@link Ext.Component} or any subclass
* thereof) on a page so that they can be easily accessed by {@link Ext.Component component}
* {@link Ext.Component#id id} (see {@link #get}, or the conveni... | JavaScript |
/**
* @class Ext.util.CSS
* Utility class for manipulating CSS rules
* @singleton
*/
Ext.define('Ext.util.CSS', function() {
var rules = null;
var doc = document;
var camelRe = /(-[a-z])/gi;
var camelFn = function(m, a){ return a.charAt(1).toUpperCase(); };
return {
singleton: true,
... | JavaScript |
/**
* @class Ext.util.Sortable
A mixin which allows a data component to be sorted. This is used by e.g. {@link Ext.data.Store} and {@link Ext.data.TreeStore}.
**NOTE**: This mixin is mainly for internal library use and most users should not need to use it directly. It
is more likely you will want to use one of the c... | JavaScript |
/**
* @class Ext.util.Point
* @extends Ext.util.Region
*
* Represents a 2D point with x and y properties, useful for comparison and instantiation
* from an event:
* <pre><code>
* var point = Ext.util.Point.fromEvent(e);
* </code></pre>
*/
Ext.define('Ext.util.Point', {
/* Begin Definitions */
extend:... | JavaScript |
/**
* @class Ext.util.Animate
* This animation class is a mixin.
*
* Ext.util.Animate provides an API for the creation of animated transitions of properties and styles.
* This class is used as a mixin and currently applied to {@link Ext.core.Element}, {@link Ext.CompositeElement},
* {@link Ext.draw.Sprite}, {... | JavaScript |
/**
* @class Ext.util.Floating
* A mixin to add floating capability to a Component
*/
Ext.define('Ext.util.Floating', {
uses: ['Ext.Layer', 'Ext.window.Window'],
/**
* @cfg {Boolean} focusOnToFront
* Specifies whether the floated component should be automatically {@link #focus focused} when it is... | JavaScript |
/**
* @class Ext.util.Sorter
* @extends Object
* Represents a single sorter that can be applied to a Store
*/
Ext.define('Ext.util.Sorter', {
/**
* @cfg {String} property The property to sort by. Required unless {@link #sorter} is provided
*/
/**
* @cfg {Function} sorterFn A specific so... | JavaScript |
/**
* @class Ext.util.Observable
* Base class that provides a common interface for publishing events. Subclasses are expected to
* to have a property "events" with all the events defined, and, optionally, a property "listeners"
* with configured listeners defined.<br>
* For example:
* <pre><code>
Employee = Ext.e... | JavaScript |
/**
* @class Ext.util.ComponentDragger
* @extends Ext.dd.DragTracker
* <p>A subclass of Ext.dd.DragTracker which handles dragging any Component.</p>
* <p>This is configured with a Component to be made draggable, and a config object for the
* {@link Ext.dd.DragTracker} class.</p>
* <p>A {@link #} delegate may be p... | JavaScript |
/**
* @class Ext.util.Filter
* @extends Object
* <p>Represents a filter that can be applied to a {@link Ext.util.MixedCollection MixedCollection}. Can either simply
* filter on a property/value pair or pass in a filter function with custom logic. Filters are always used in the context
* of MixedCollections, though... | JavaScript |
/**
* @class Ext.util.Inflector
* @extends Object
* <p>General purpose inflector class that {@link #pluralize pluralizes}, {@link #singularize singularizes} and
* {@link #ordinalize ordinalizes} words. Sample usage:</p>
*
<pre><code>
//turning singular words into plurals
Ext.util.Inflector.pluralize('word'); //'... | JavaScript |
/**
* @class Ext.util.KeyMap
* Handles mapping keys to actions for an element. One key map can be used for multiple actions.
* The constructor accepts the same config object as defined by {@link #addBinding}.
* If you bind a callback function to a KeyMap, anytime the KeyMap handles an expected key
* combination it... | JavaScript |
/**
* @class Ext.util.AbstractMixedCollection
*/
Ext.define('Ext.util.AbstractMixedCollection', {
requires: ['Ext.util.Filter'],
mixins: {
observable: 'Ext.util.Observable'
},
constructor: function(allowFunctions, keyFn) {
var me = this;
me.items = [];
me.map = {... | JavaScript |
/**
* @class Ext.util.KeyNav
* <p>Provides a convenient wrapper for normalized keyboard navigation. KeyNav allows you to bind
* navigation keys to function calls that will get called when the keys are pressed, providing an easy
* way to implement custom navigation schemes for any UI component.</p>
* <p>The follow... | JavaScript |
/**
* @class Ext.util.Region
* @extends Object
*
* Represents a rectangular region and provides a number of utility methods
* to compare regions.
*/
Ext.define('Ext.util.Region', {
/* Begin Definitions */
requires: ['Ext.util.Offset'],
statics: {
/**
* @static
* @param {M... | JavaScript |
/**
* @class Ext.util.MixedCollection
* <p>
* Represents a collection of a set of key and value pairs. Each key in the MixedCollection
* must be unique, the same key cannot exist twice. This collection is ordered, items in the
* collection can be accessed by index or via the key. Newly added items are added to
*... | JavaScript |
/**
* @class Ext.util.Grouper
* @extends Ext.util.Sorter
*/
Ext.define('Ext.util.Grouper', {
/* Begin Definitions */
extend: 'Ext.util.Sorter',
/* End Definitions */
/**
* Function description
* @param {Ext.data.Model} instance The Model instance
* @return {String} The group stri... | JavaScript |
/**
* @class Ext.util.TextMetrics
* <p>
* Provides precise pixel measurements for blocks of text so that you can determine exactly how high and
* wide, in pixels, a given block of text will be. Note that when measuring text, it should be plain text and
* should not contain any HTML, otherwise it may not be measure... | JavaScript |
/**
* @class Ext.util.HashMap
* <p>
* Represents a collection of a set of key and value pairs. Each key in the HashMap
* must be unique, the same key cannot exist twice. Access to items is provided via
* the key only. Sample usage:
* <pre><code>
var map = new Ext.util.HashMap();
map.add('key1', 1);
map.add('key2'... | JavaScript |
/**
* @class Ext.util.History
* History management component that allows you to register arbitrary tokens that signify application
* history state on navigation actions. You can then handle the history {@link #change} event in order
* to reset your application UI to the appropriate state when the user navigates fo... | JavaScript |
/**
* @class Ext.util.Cookies
Utility class for setting/reading values from browser cookies.
Values can be written using the {@link #set} method.
Values can be read using the {@link #get} method.
A cookie can be invalidated on the client machine using the {@link #clear} method.
* @markdown
* @singleton
*/
Ext.def... | JavaScript |
/**
* @class Ext.util.ClickRepeater
* @extends Ext.util.Observable
*
* A wrapper class which can be applied to any element. Fires a "click" event while the
* mouse is pressed. The interval between firings may be specified in the config but
* defaults to 20 milliseconds.
*
* Optionally, a CSS class may be applie... | JavaScript |
/**
* @class Ext.util.Offset
* @ignore
*/
Ext.define('Ext.util.Offset', {
/* Begin Definitions */
statics: {
fromObject: function(obj) {
return new this(obj.x, obj.y);
}
},
/* End Definitions */
constructor: function(x, y) {
this.x = (x != null && !isNaN(x)... | JavaScript |
Ext.define('Ext.chart.MaskLayer', {
extend: 'Ext.Component',
constructor: function(config) {
config = Ext.apply(config || {}, {
style: 'position:absolute;background-color:#888;cursor:move;opacity:0.6;border:1px solid #222;'
});
this.callParent([config]);
},
... | JavaScript |
/**
* @class Ext.chart.Callout
* @ignore
*/
Ext.define('Ext.chart.Callout', {
/* Begin Definitions */
/* End Definitions */
constructor: function(config) {
if (config.callouts) {
config.callouts.styles = Ext.applyIf(config.callouts.styles || {}, {
color: "#000",
... | JavaScript |
/**
* @class Ext.chart.axis.Time
* @extends Ext.chart.axis.Axis
*
* A type of axis whose units are measured in time values. Use this axis
* for listing dates that you will want to group or dynamically change.
* If you just want to display dates as categories then use the
* Category class for axis instead.
*
* ... | JavaScript |
/**
* @class Ext.chart.axis.Gauge
* @extends Ext.chart.axis.Abstract
*
* Gauge Axis is the axis to be used with a Gauge series. The Gauge axis
* displays numeric data from an interval defined by the `minimum`, `maximum` and
* `step` configuration properties. The placement of the numeric data can be changed
* by ... | JavaScript |
/**
* @class Ext.chart.axis.Axis
* @extends Ext.chart.axis.Abstract
*
* Defines axis for charts. The axis position, type, style can be configured.
* The axes are defined in an axes array of configuration objects where the type,
* field, grid and other configuration options can be set. To know more about how
*... | JavaScript |
/**
* @class Ext.chart.axis.Category
* @extends Ext.chart.axis.Axis
*
* A type of axis that displays items in categories. This axis is generally used to
* display categorical information like names of items, month names, quarters, etc.
* but no quantitative values. For that other type of information <em>Number</e... | JavaScript |
/**
* @class Ext.chart.axis.Numeric
* @extends Ext.chart.axis.Axis
*
* An axis to handle numeric values. This axis is used for quantitative data as
* opposed to the category axis. You can set mininum and maximum values to the
* axis so that the values are bound to that. If no values are set, then the
* scale wil... | JavaScript |
/**
* @class Ext.chart.axis.Radial
* @extends Ext.chart.axis.Abstract
* @ignore
*/
Ext.define('Ext.chart.axis.Radial', {
/* Begin Definitions */
extend: 'Ext.chart.axis.Abstract',
/* End Definitions */
position: 'radial',
alias: 'axis.radial',
drawAxis: function(init) {
var cha... | JavaScript |
/**
* @class Ext.chart.axis.Abstract
* @ignore
*/
Ext.define('Ext.chart.axis.Abstract', {
/* Begin Definitions */
requires: ['Ext.chart.Chart'],
/* End Definitions */
constructor: function(config) {
config = config || {};
var me = this,
pos = config.position || 'left'... | JavaScript |
/**
* @class Ext.chart.Tip
* @ignore
*/
Ext.define('Ext.chart.Tip', {
/* Begin Definitions */
requires: ['Ext.tip.ToolTip', 'Ext.chart.TipSurface'],
/* End Definitions */
constructor: function(config) {
var me = this,
surface,
sprites,
tipSurface;
... | JavaScript |
/**
* @class Ext.chart.series.Line
* @extends Ext.chart.series.Cartesian
*
<p>
Creates a Line Chart. A Line Chart is a useful visualization technique to display quantitative information for different
categories or other real values (as opposed to the bar chart), that can show some progression (or regression)... | JavaScript |
/**
* @class Ext.chart.series.Column
* @extends Ext.chart.series.Bar
*
<p>
Creates a Column Chart. Much of the methods are inherited from Bar. A Column Chart is a useful visualization technique to display quantitative information for different
categories that can show some progression (or regression) in the ... | JavaScript |
/**
* @class Ext.chart.series.Gauge
* @extends Ext.chart.series.Series
*
* Creates a Gauge Chart. Gauge Charts are used to show progress in a certain variable. There are two ways of using the Gauge chart.
* One is setting a store element into the Gauge and selecting the field to be used from that store. Another o... | JavaScript |
/**
* Creates a Bar Chart. A Bar Chart is a useful visualization technique to display quantitative information for
* different categories that can show some progression (or regression) in the dataset. As with all other series, the Bar
* Series must be appended in the *series* Chart array configuration. See the Chart... | JavaScript |
/**
* @class Ext.chart.series.Cartesian
* @extends Ext.chart.series.Series
*
* Common base class for series implementations which plot values using x/y coordinates.
*
* @constructor
*/
Ext.define('Ext.chart.series.Cartesian', {
/* Begin Definitions */
extend: 'Ext.chart.series.Series',
alternateCl... | JavaScript |
/**
* @class Ext.chart.series.Area
* @extends Ext.chart.series.Cartesian
*
<p>
Creates a Stacked Area Chart. The stacked area chart is useful when displaying multiple aggregated layers of information.
As with all other series, the Area Series must be appended in the *series* Chart array configuration. See ... | JavaScript |
/**
* @class Ext.chart.series.Series
*
* Series is the abstract class containing the common logic to all chart series. Series includes
* methods from Labels, Highlights, Tips and Callouts mixins. This class implements the logic of handling
* mouse events, animating, hiding, showing all elements and returning th... | JavaScript |
/**
* @class Ext.chart.series.Radar
* @extends Ext.chart.series.Series
*
* Creates a Radar Chart. A Radar Chart is a useful visualization technique for comparing different quantitative values for
* a constrained number of categories.
* As with all other series, the Radar series must be appended in the *series* ... | JavaScript |
/**
* @class Ext.chart.series.Pie
* @extends Ext.chart.series.Series
*
* Creates a Pie Chart. A Pie Chart is a useful visualization technique to display quantitative information for different
* categories that also have a meaning as a whole.
* As with all other series, the Pie Series must be appended in the *se... | JavaScript |
/**
* @class Ext.chart.series.Scatter
* @extends Ext.chart.series.Cartesian
*
* Creates a Scatter Chart. The scatter plot is useful when trying to display more than two variables in the same visualization.
* These variables can be mapped into x, y coordinates and also to an element's radius/size, color, etc.
* ... | JavaScript |
/**
* @class Ext.chart.LegendItem
* @extends Ext.draw.CompositeSprite
* A single item of a legend (marker plus label)
* @constructor
*/
Ext.define('Ext.chart.LegendItem', {
/* Begin Definitions */
extend: 'Ext.draw.CompositeSprite',
requires: ['Ext.chart.Shape'],
/* End Definitions */
// P... | JavaScript |
/**
* @class Ext.chart.Legend
*
* Defines a legend for a chart's series.
* The 'chart' member must be set prior to rendering.
* The legend class displays a list of legend items each of them related with a
* series being rendered. In order to render the legend item of the proper series
* the series configuration ... | JavaScript |
/**
* @class Ext.chart.TipSurface
* @ignore
*/
Ext.define('Ext.chart.TipSurface', {
/* Begin Definitions */
extend: 'Ext.draw.Component',
/* End Definitions */
spriteArray: false,
renderFirst: true,
constructor: function(config) {
this.callParent([config]);
if (config.spr... | JavaScript |
/**
* @class Ext.chart.Navigation
*
* Handles panning and zooming capabilities.
*
* @ignore
*/
Ext.define('Ext.chart.Navigation', {
constructor: function() {
this.originalStore = this.store;
},
//filters the store to the specified interval(s)
setZoom: function(zoomConfig) {
... | JavaScript |
/**
* @class Ext.chart.Mask
*
* Defines a mask for a chart's series.
* The 'chart' member must be set prior to rendering.
*
* A Mask can be used to select a certain region in a chart.
* When enabled, the `select` event will be triggered when a
* region is selected by the mask, allowing the user to perform
* ot... | JavaScript |
/**
* @class Ext.chart.theme.Base
* Provides default colors for non-specified things. Should be sub-classed when creating new themes.
* @ignore
*/
Ext.define('Ext.chart.theme.Base', {
/* Begin Definitions */
requires: ['Ext.chart.theme.Theme'],
/* End Definitions */
constructor: function(config)... | JavaScript |
/**
* @class Ext.chart.theme.Theme
* @ignore
*/
Ext.define('Ext.chart.theme.Theme', {
/* Begin Definitions */
requires: ['Ext.draw.Color'],
/* End Definitions */
theme: 'Base',
themeAttrs: false,
initTheme: function(theme) {
var me = this,
themes = Ext.chart.theme... | JavaScript |
/**
* @class Ext.chart.Label
*
* Labels is a mixin whose methods are appended onto the Series class. Labels is an interface with methods implemented
* in each of the Series (Pie, Bar, etc) for label creation and label placement.
*
* The methods implemented by the Series are:
*
* - **`onCreateLabel(storeItem, ... | JavaScript |
/**
* @class Ext.chart.Highlight
* @ignore
*/
Ext.define('Ext.chart.Highlight', {
/* Begin Definitions */
requires: ['Ext.fx.Anim'],
/* End Definitions */
/**
* Highlight the given series item.
* @param {Boolean|Object} Default's false. Can also be an object width style properties (i.e ... | JavaScript |
/**
* @class Ext.chart.Shape
* @ignore
*/
Ext.define('Ext.chart.Shape', {
/* Begin Definitions */
singleton: true,
/* End Definitions */
circle: function (surface, opts) {
return surface.add(Ext.apply({
type: 'circle',
x: opts.x,
y: opts.y,
... | JavaScript |
/*
Ext JS - JavaScript Library
Copyright (c) 2006-2011, Sencha Inc.
All rights reserved.
licensing@sencha.com
*/
/**
* @class Ext
* @singleton
*/
(function() {
var global = this,
objectPrototype = Object.prototype,
toString = Object.prototype.toString,
enumerables = true,
enumerab... | 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 |
$(document).ready(function(){
$.ajax({
url: 'https://registroaareii.jelastic.servint.net/aareii/what.html',
success : function(data){
$('#content').html(data);
}
});
// var ancho = $(window).width();
// var alto = $(window).height();
// $('#content').css('height',alto-0.35*alto);
// $('.tabla').css... | JavaScript |
$('#hideshow').toggle(function(){
$(this).text('Show');
},function(){
$(this).text('Hide');
}).click(function(){
$('#message').toggle();
}); | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.