office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
208 lines (193 loc) • 9.52 kB
Plain Text
>>> office-ui-fabric-react
npm run clean
npm run test -- --color --production
> office-ui-fabric-react@0.72.0 test D:\agent\2\_work\16\s\packages\office-ui-fabric-react
> gulp "--color" "--production"
[20:07:57] Using gulpfile D:\agent\2\_work\16\s\packages\office-ui-fabric-react\gulpfile.js
[20:07:57] Starting gulp
[20:07:57] Starting 'default'...
[20:07:57] Starting subtask 'pre-copy'...
[20:07:57] Finished subtask 'pre-copy' after 15 ms
[20:07:57] Starting subtask 'sass'...
[20:08:06] Finished subtask 'sass' after 9.35 s
[20:08:06] Starting subtask 'typescript'...
[20:08:06] [typescript] Using custom version: 2.0.9
[20:08:06] Starting subtask 'tslint'...
[20:08:06] Starting subtask 'text'...
[20:09:09] Finished subtask 'text' after 1.03 min
[20:10:08] Finished subtask 'tslint' after 2.02 min
[20:10:16] Finished subtask 'typescript' after 2.15 min
[20:10:16] Starting subtask 'post-copy'...
[20:10:17] Finished subtask 'post-copy' after 633 ms
[20:10:17] Starting subtask 'webpack'...
[20:11:37] [webpack] Bundled: 'office-ui-fabric-react.js', size: 853539 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'office-ui-fabric-react.js.map', size: 853539 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'office-ui-fabric-react.min.js', size: 853539 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'office-ui-fabric-react.min.js.map', size: 853539 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'demo-app.js', size: 2762562 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'demo-app.js.map', size: 2762562 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'demo-vendor.js', size: 34 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'demo-vendor.js.map', size: 34 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'demo-app.min.js', size: 2762562 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'demo-app.min.js.map', size: 2762562 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'demo-vendor.min.js', size: 34 bytes, took 79788 ms.
[20:11:37] [webpack] Bundled: 'demo-vendor.min.js.map', size: 34 bytes, took 79788 ms.
[20:11:37] Finished subtask 'webpack' after 1.33 min
[20:11:37] Starting subtask 'karma'...
18 11 2016 20:11:44.563:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
18 11 2016 20:11:44.574:INFO [launcher]: Starting browser PhantomJS
18 11 2016 20:11:47.418:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Connected on socket dz_B1ZBACpMOAW1mAAAA with id 33730445
Start:
BaseComponent
√ calls the error logger on componentWillMount exception
√ calls the error logger on componentDidMount exception
√ calls the error logger on shouldComponentUpdate exception
√ calls the error logger on componentWillUpdate exception
√ calls the error logger on componentWillReceiveProps exception
√ calls the error logger on render exception
√ calls the error logger on componentDidUpdate exception
√ calls the error logger on componentWillUnmount exception
√ can resolve refs
BaseStore
√ can emit changes
√ can unsubscribe
connect
√ can observe store changes
ERROR: 'Exception in ConnectedHost(props) {__cov_Gi3iIH$OdlIGHiCqbjL_6w.f['6']++;__cov_Gi3iIH$OdlIGHiCqbjL_6w.s['29']++;_super.call.componentWillMount(): A connected component was hosted in an environment where no stores were hosted. Use the StoreHost to host components.'
√ can throw when requiring a store in an environment without any stores hosted
ERROR: 'Exception in ConnectedHost(props) {__cov_Gi3iIH$OdlIGHiCqbjL_6w.f['6']++;__cov_Gi3iIH$OdlIGHiCqbjL_6w.s['29']++;_super.call.componentWillMount(): The "hello" store was required by a connected component, but not exposed.'
√ can throw in an environment that does not contain the required store
√ renders a connected component 1 time when multiple stores fire changes
Breadcrumb
√ can call the callback when an item is clicked
ContextualMenu
√ does not have a scrollbar due to an overflowing icon
FocusZone
√ can use arrows vertically
√ can use arrows horizontally
√ can use arrows bidirectionally
Label
√ renders a label
TeachingBubble
√ renders a label
TextField
√ should render label and value to input element
√ should render multiline as text area element
√ should associate the label and input box
√ should render a disabled input element
error message
√ should render error message when onGetErrorMessage returns a string
√ should render error message when onGetErrorMessage returns a Promise<string>
√ should render error message on first render when onGetErrorMessage returns a string
√ should render error message on first render when onGetErrorMessage returns a Promise<string>
√ should not render error message when onGetErrorMessage return an empty string
√ should not render error message when no value is provided
√ should update error message when receive new value from props
Toggle
√ renders a label
√ can call the callback on a change of toggle
√ doesn't update the state if the user provides checked
BaseAutoFill
√ Input Text Works
√ Delete Text Works
autobind
√ can bind a method
DateMath
√ can add days
√ can add days across a month boundary
√ can add days across multiple month boundaries
√ can add days across leap day boundaries
√ can add months
√ can add years
√ can subtract days
√ can subtract days across a month boundry
√ can subtract days across multiple month boundaries
√ can subtract days across leap day boundaries
√ can subtract months
√ can subtract years
√ can set the month
√ can compare dates
withResponsiveMode
√ can be used in a server scenario
√ throws in server scenario when responsive mode is not specified
elementContains
√ can find a child
√ can return false on an unattached child
√ can return false on a null child
√ can return false on a null parent
√ can return false when parent is an svg
getParent
√ returns correct parent for inner SVG elements
EventGroup
√ can observe an HTML element event
√ can observe an object event
√ can bubble object events
√ can cancelBubble/preventDefault if false is returned on an element event callback
√ can selectively remove event handlers
√ can raise custom html events
isElementVisible
√ returns false if data-is-visible is false
√ returns true if data-is-visible is true
√ returns true if data-is-visible is undefined but element is visible
assign
√ can copy an object
filteredAssign
√ can copy an object but avoid copying some parameters
Callout Positioning
√ Gets correct percent along line
√ Correctly recalculates percents
√ Correctly positions the callout without beak
√ Correctly positions the callout with the beak
getNativeProps
√ can pass through data tags
√ can pass through aria tags
√ can pass through basic div properties and events
√ can remove unexpected properties
√ can exclude properties
rtl
√ can set and get the rtl setting on the server
√ can throw when setting a value on the server without setRTL called
Selection
√ fires change events only when selection changes occur
√ returns false on isAllSelected when no items are selectable
√ resets unselectable count on setting new items
SelectionZone
√ toggles an item on click of toggle element
√ toggles an item on dblclick of toggle element
√ does not toggle an item on mousedown of toggle element
√ selects an unselected item on mousedown of invoke without modifiers pressed
√ does nothing with mousedown of invoke when item is selected already
√ calls the invoke callback on click of invoke area
√ selects an unselected item on click of item surface element
√ does not unselect a selected item on click of item surface element
√ does not select an unselected item on mousedown of item surface element
√ invokes an item on double clicking the surface element
√ toggles all on toggle-all clicks
√ suports mouse shift click range select scenarios
√ toggles by ctrl clicking a surface
√ selects all on ctrl-a
√ unselects all on escape
√ selects item on focus
√ does not select an item on focus if ctrl/meta is pressed
√ does not select an item on focus when ignoreNextFocus is called
√ toggles an item when pressing space
√ does not select the row when clicking on a toggle within an invoke element
Finished in 2.108 secs / 1.149 secs
SUMMARY:
√ 106 tests completed
[20:11:54] Finished subtask 'karma' after 17 s
[20:11:54] Starting subtask 'run-ssr-tests'...
[20:12:02] Finished subtask 'run-ssr-tests' after 8.36 s
[20:12:02] Finished 'default' after 4.08 min
Fabric components
√ are SSR compliant on import
1) are SSR compliant on render
1 passing (4s)
1 failing
1) Fabric components are SSR compliant on render:
Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
[20:12:06] ==================[ Finished ]==================
[20:12:07] Project office-ui-fabric-react version: 0.72.0
[20:12:07] Build tools version: 1.0.1
[20:12:07] Node version: v6.9.1
[20:12:07] Total duration: 4.18 min