This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[4mRunning "jasmine:neatline" (jasmine) task[24m | |
Testing jasmine specs via PhantomJS | |
Events | Event Broker | |
highlight | |
- should do nothing when no records are highlighted......✓ | |
- should unhighlight currently-highlighted record......X | |
Expected spy trigger to have been called with [ 'unhighlight', { model : { cid : 'c10', attributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, stroke_width : 2, point_radius : 10, exhibit_id : '49', item_id : null, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, _changing : false, _previousAttributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : '0.3', fill_opacity_select : '0.4', stroke_opacity : '0.9', stroke_opacity_select : '1.0', stroke_width : '2', point_radius : '10', exhibit_id : '49' }, changed : { item_id : null, fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, point_radius : 10, stroke_width : 2, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, id : 1, _pending : false, toJSON : Function, get : Function, set : Function, _events : { change:title : [ { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:body : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:item : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ] } }, source : 'EVENTS' } ] but actual calls were [ 'highlight', { model : { cid : 'c10', attributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, stroke_width : 2, point_radius : 10, exhibit_id : '49', item_id : null, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, _changing : false, _previousAttributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : '0.3', fill_opacity_select : '0.4', stroke_opacity : '0.9', stroke_opacity_select : '1.0', stroke_width : '2', point_radius : '10', exhibit_id : '49' }, changed : { item_id : null, fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, point_radius : 10, stroke_width : 2, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, id : 1, _pending : false, toJSON : Function, get : Function, set : Function, _events : { change:title : [ { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:body : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:item : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ] } }, source : 'SRC1' } ], [ 'highlight', { model : { cid : 'c11', attributes : { id : 2, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, stroke_width : 2, point_radius : 10, exhibit_id : '49', item_id : null, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, _changing : false, _previousAttributes : { id : 2, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : '0.3', fill_opacity_select : '0.4', stroke_opacity : '0.9', stroke_opacity_select : '1.0', stroke_width : '2', point_radius : '10', exhibit_id : '49' }, changed : { item_id : null, fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, point_radius : 10, stroke_width : 2, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, id : 2, _pending : false, toJSON : Function, get : Function, set : Function, _events : { change:title : [ { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:body : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:item : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ] } }, source : 'SRC2' } ], [ 'unhighlight', { model : { cid : 'c10', attributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, stroke_width : 2, point_radius : 10, exhibit_id : '49', item_id : null, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, _changing : false, _previousAttributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : '0.3', fill_opacity_select : '0.4', stroke_opacity : '0.9', stroke_opacity_select : '1.0', stroke_width : '2', point_radius : '10', exhibit_id : '49' }, changed : { item_id : null, fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, point_radius : 10, stroke_width : 2, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, id : 1, _pending : false, toJSON : Function, get : Function, set : Function, _events : { change:title : [ { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:body : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:item : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ] } }, source : 'BROKER' } ]. (1) | |
unhighlight | |
- should de-register the record in the highlight list......✓ | |
select | |
- should do nothing when no record is selected......✓ | |
- should unselect the currently-selected record......X | |
Expected spy trigger to have been called with [ 'unselect', { model : { cid : 'c28', attributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, stroke_width : 2, point_radius : 10, exhibit_id : '49', item_id : null, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, _changing : false, _previousAttributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : '0.3', fill_opacity_select : '0.4', stroke_opacity : '0.9', stroke_opacity_select : '1.0', stroke_width : '2', point_radius : '10', exhibit_id : '49' }, changed : { item_id : null, fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, point_radius : 10, stroke_width : 2, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, id : 1, _pending : false, toJSON : Function, get : Function, set : Function, _events : { change:title : [ { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:body : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:item : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ] } }, source : 'EVENTS' } ] but actual calls were [ 'select', { model : { cid : 'c28', attributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, stroke_width : 2, point_radius : 10, exhibit_id : '49', item_id : null, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, _changing : false, _previousAttributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : '0.3', fill_opacity_select : '0.4', stroke_opacity : '0.9', stroke_opacity_select : '1.0', stroke_width : '2', point_radius : '10', exhibit_id : '49' }, changed : { item_id : null, fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, point_radius : 10, stroke_width : 2, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, id : 1, _pending : false, toJSON : Function, get : Function, set : Function, _events : { change:title : [ { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:body : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:item : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ] } }, source : 'SRC1' } ], [ 'MAP:focused' ], [ 'select', { model : { cid : 'c29', attributes : { id : 2, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, stroke_width : 2, point_radius : 10, exhibit_id : '49', item_id : null, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, _changing : false, _previousAttributes : { id : 2, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : '0.3', fill_opacity_select : '0.4', stroke_opacity : '0.9', stroke_opacity_select : '1.0', stroke_width : '2', point_radius : '10', exhibit_id : '49' }, changed : { item_id : null, fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, point_radius : 10, stroke_width : 2, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, id : 2, _pending : false, toJSON : Function, get : Function, set : Function, _events : { change:title : [ { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:body : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:item : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ] } }, source : 'SRC2' } ], [ 'unselect', { model : { cid : 'c28', attributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, stroke_width : 2, point_radius : 10, exhibit_id : '49', item_id : null, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, _changing : false, _previousAttributes : { id : 1, presenter : 'StaticBubble', fill_color : '#00aeff', fill_color_select : '#00aeff', stroke_color : '#000000', stroke_color_select : '#000000', fill_opacity : '0.3', fill_opacity_select : '0.4', stroke_opacity : '0.9', stroke_opacity_select : '1.0', stroke_width : '2', point_radius : '10', exhibit_id : '49' }, changed : { item_id : null, fill_opacity : 0.3, fill_opacity_select : 0.4, stroke_opacity : 0.9, stroke_opacity_select : 1, point_radius : 10, stroke_width : 2, zindex : null, weight : null, min_zoom : null, max_zoom : null, map_zoom : null }, id : 1, _pending : false, toJSON : Function, get : Function, set : Function, _events : { change:title : [ { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:body : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ], change:item : [ { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> }, { callback : Function, context : undefined, ctx : <circular reference: Object> } ] } }, source : 'BROKER' } ], [ 'MAP:focused' ]. (1) | |
unselect | |
- should de-register the record in the select list......✓ | |
Events | Router | |
- should select the record referenced in the route......X | |
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. (1) | |
- should update the route when a record is selected......X | |
Expected null to equal 'record/44'. (1) | |
Layers | Google | |
- should construct a `physical` layer......✓ | |
- should construct a `streets` layer......✓ | |
- should construct a `satellite` layer......✓ | |
- should construct a `hybrid` layer......✓ | |
API | Layers | |
- should return nothing when a handler does not exist......✓ | |
- should return a layer when a handler exists......✓ | |
Layers | OpenStreetMap | |
- should construct an OpenStreetMap layer......✓ | |
Layers | Stamen | |
- should construct a `toner` layer......✓ | |
- should construct a `terrain` layer......✓ | |
- should construct a `watercolor` layer......✓ | |
Layers | Web Map Service | |
- should construct a WMS layer......✓ | |
Layers | XYZ | |
- should construct a WMS layer......✓ | |
Map | Ingest Vector Layers | |
- should load layers when exhibit starts......✓ | |
- should update layers when the map is moved......✓ | |
- should not double-render models that already have layers......✓ | |
- should not garbage collect frozen layers......✓ | |
Map | Ingest WMS Layers | |
- should load layers when exhibit starts......✓ | |
- should update layers when the map is moved......✓ | |
- should not double-render models that already have layers......✓ | |
Map | Initialize Default Focus | |
- should apply the exhibit default focus......✓ | |
Map | Initialize Image Base Layer | |
- should construct image base layer......✓ | |
- should set the number of zoom levels......✓ | |
Map | Initialize Spatial Base Layers | |
- should construct base layers......✓ | |
- should set default base layer......✓ | |
Map | Initialize WMS Base Layer | |
- should construct WMS base layer......✓ | |
Map | Publish `(un)highlight` and `(un)select` | |
- should publish `highlight` on feature highlight......✓ | |
- should publish `unhighlight` on feature unhighlight......✓ | |
- should publish `select` on feature select......✓ | |
- should publish `unselect` on feature unselect......✓ | |
Map | Render Vector Styles | |
- should construct style maps from record fields......✓ | |
render intent manifestations | |
- should highlight all the features on the layer......✓ | |
- should not highlight when map is being panned......✓ | |
- should not highlight when map is being loaded......✓ | |
- should unhighlight all the features on the layer......✓ | |
- should select all the features on the layer......✓ | |
- should unselect all the features on the layer......✓ | |
Map | Render Vector Zindex | |
- should apply `zindex` values......✓ | |
Map | Render WMS Opacity | |
- should render opacities......✓ | |
Map | Render WMS Zindex | |
- should apply `zindex` values......✓ | |
Map | Spatial Querying Disabled | |
- should query for records when the exhibit starts......✓ | |
- should not query for records when the map is moved......✓ | |
Map | Spatial Querying Enabled | |
- should query by extent/zoom when the exhibit starts......✓ | |
- should query for records when the map is moved......✓ | |
- should not ingest records when the map is being moved......✓ | |
Map | Subscribe `highlight` | |
- should highlight features......✓ | |
- should not highlight features for selected layer......✓ | |
Map | Subscribe `refresh` | |
- should clear and rebuild vector layers......✓ | |
- should clear and rebuild WMS layers......✓ | |
- should not rebuild frozen vector layers......✓ | |
Map | Subscribe `removeFilter` | |
- should remove filters......✓ | |
Map | Subscribe `select` (Vector Layers) | |
should focus and zoom on the record | |
- no focus, no zoom......✓ | |
- focus, no zoom......X | |
Expected 3 to equal 100. (1) | |
Expected 4 to equal 200. (2) | |
- zoom, no focus......X | |
Expected 18 to equal 10. (1) | |
- focus and zoom......✓ | |
- should focus when a layer already exists......✓ | |
- should create layer and focus when no layer exists......✓ | |
- should reselect currently selected layer after ingest......✓ | |
- should not focus when feature is clicked......✓ | |
Map | Subscribe `select` (WMS Layers) | |
- should not focus for model with WMS but no focus......✓ | |
- should focus for model with WMS and focus......✓ | |
Map | Subscribe `setFilter` | |
- should set filters......✓ | |
- should filter new layers......✓ | |
Map | Subscribe `unhighlight` | |
- should unhighlight features for highlighted layer......✓ | |
- should not unhighlight features for selected layer......✓ | |
Map | Subscribe `unselect` | |
- should unselect features......✓ | |
API | Widget | |
- should append view when widget is not templated......✓ | |
- should not append view when widget is templated......✓ | |
API | Presenter | |
- should forward events to presenter-specific commands......✓ | |
Presenters | Static Bubble | |
- should hide the bubble by default......✓ | |
highlight | |
- should bind record and show the title......✓ | |
- should not show the close "X" or the body/item......✓ | |
- should not override a selected record......✓ | |
unhighlight | |
- should hide the bubble if it is not selected......✓ | |
- should not hide the bubble if it is selected......✓ | |
- should hide the bubble when cursor leaves the map......✓ | |
select | |
- should show close "X"......✓ | |
- should show the body/item content when non-null......✓ | |
- should not show the body/item content when null......✓ | |
- should override a selected record......✓ | |
unselect | |
- should close on unselect......✓ | |
- should close when "X" is clicked......✓ | |
Record | Get Item | |
loadItem | |
- should pass the item body to the callback......X | |
TypeError: 'undefined' is not a function (evaluating 'record.loadItem(function(body) { | |
expect(body).toEqual('item'); | |
done(); | |
})') in file:///Users/err8n/neatline/plugins/Neatline/tests/jasmine/tests/neatline/record/GetItem.spec.js (line 29) (1) | |
should load the item on first access | |
- when the record is saved......✓ | |
- when the record is saved......✓ | |
- should not load the item when no parent item is defined......✓ | |
- should not reload the item......✓ | |
Record | Get Title | |
- no record title, no item title -> `undefined`......✓ | |
- item title, no record title -> item title......✓ | |
- record title, no item title -> record title......✓ | |
- record title and item title -> record title......✓ | |
Record | Has Tag | |
- no tags......X | |
TypeError: 'undefined' is not a function (evaluating 'record.hasTag('tag')') in file:///Users/err8n/neatline/plugins/Neatline/tests/jasmine/tests/neatline/record/HasTag.spec.js (line 14) (1) | |
- one tag......X | |
TypeError: 'undefined' is not a function (evaluating 'record.hasTag('tag1')') in file:///Users/err8n/neatline/plugins/Neatline/tests/jasmine/tests/neatline/record/HasTag.spec.js (line 24) (1) | |
- multiple tags......X | |
TypeError: 'undefined' is not a function (evaluating 'record.hasTag('tag1')') in file:///Users/err8n/neatline/plugins/Neatline/tests/jasmine/tests/neatline/record/HasTag.spec.js (line 36) (1) | |
- untrimmed tags......X | |
TypeError: 'undefined' is not a function (evaluating 'record.hasTag('tag1')') in file:///Users/err8n/neatline/plugins/Neatline/tests/jasmine/tests/neatline/record/HasTag.spec.js (line 49) (1) | |
Record | Schema | |
- should cast numeric fields to Numbers......✓ | |
103 specs in 7.159s. | |
[31m>> [39m11 failures | |
[33mWarning: Task "jasmine:neatline" failed. Use --force to continue.[39m | |
[31mAborted due to warnings.[39m | |
Execution Time (2014-07-16 19:31:42 UTC) | |
loading tasks 247ms ▇▇ 3% | |
jasmine:neatline 8.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 97% | |
Total 8.5s | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment