office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
212 lines (197 loc) • 9.63 kB
Plain Text
>>> office-ui-fabric-react
npm run clean
npm run test -- --color --production
> office-ui-fabric-react@0.72.1 test D:\agent\4\_work\38\s\packages\office-ui-fabric-react
> gulp "--color" "--production"
[00:01:43] Using gulpfile D:\agent\4\_work\38\s\packages\office-ui-fabric-react\gulpfile.js
[00:01:43] Starting gulp
[00:01:43] Starting 'default'...
[00:01:43] Starting subtask 'pre-copy'...
[00:01:43] Finished subtask 'pre-copy' after 45 ms
[00:01:43] Starting subtask 'sass'...
[00:01:52] Finished subtask 'sass' after 8.97 s
[00:01:52] Starting subtask 'typescript'...
[00:01:52] [typescript] Using custom version: 2.0.9
[00:01:52] Starting subtask 'tslint'...
[00:01:52] Starting subtask 'text'...
[00:02:19] Finished subtask 'text' after 27 s
[00:02:20] Finished subtask 'tslint' after 27 s
[00:02:26] Finished subtask 'typescript' after 34 s
[00:02:26] Starting subtask 'post-copy'...
[00:02:27] Finished subtask 'post-copy' after 172 ms
[00:02:27] Starting subtask 'webpack'...
[00:03:10] [webpack] Bundled: 'office-ui-fabric-react.js', size: 854402 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'office-ui-fabric-react.js.map', size: 854402 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'office-ui-fabric-react.min.js', size: 854402 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'office-ui-fabric-react.min.js.map', size: 854402 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'demo-app.js', size: 2768166 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'demo-app.js.map', size: 2768166 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'demo-vendor.js', size: 34 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'demo-vendor.js.map', size: 34 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'demo-app.min.js', size: 2768166 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'demo-app.min.js.map', size: 2768166 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'demo-vendor.min.js', size: 34 bytes, took 40618 ms.
[00:03:10] [webpack] Bundled: 'demo-vendor.min.js.map', size: 34 bytes, took 40618 ms.
[00:03:10] Finished subtask 'webpack' after 43 s
[00:03:10] Starting subtask 'karma'...
22 11 2016 00:03:21.019:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
22 11 2016 00:03:21.031:INFO [launcher]: Starting browser PhantomJS
22 11 2016 00:03:27.379:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Connected on socket VX7IElAKZMS_sURQAAAA with id 60106106
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_iak_d8MsSO8koOpDycG04A.f['6']++;__cov_iak_d8MsSO8koOpDycG04A.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_iak_d8MsSO8koOpDycG04A.f['6']++;__cov_iak_d8MsSO8koOpDycG04A.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
Slider
√ renders a slider
√ can slide to default min/max and execute onChange
√ has type=button on all buttons
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 1.667 secs / 1.031 secs
SUMMARY:
√ 109 tests completed
[00:03:32] Finished subtask 'karma' after 22 s
[00:03:32] Starting subtask 'run-ssr-tests'...
[00:03:37] Finished subtask 'run-ssr-tests' after 5.05 s
[00:03:37] Finished 'default' after 1.88 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.
[00:03:41] ==================[ Finished ]==================
[00:03:41] Project office-ui-fabric-react version: 0.72.1
[00:03:41] Build tools version: 1.0.1
[00:03:41] Node version: v6.9.1
[00:03:41] Total duration: 1.97 min