UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

310 lines (297 loc) 13.9 kB
>>> office-ui-fabric-react Found mismatch: "CHANGELOG.json": "a6b8e30a9356e835bbb841612f25cfdd64032004" !== "151d6c0398c70b757a1a509f60bd95af7c206dbd" D:\agent\2\_work\7\s\common\node_modules\.bin\gulp clean D:\agent\2\_work\7\s\common\node_modules\.bin\gulp --no-color --production [04:06:50] Using gulpfile D:\agent\2\_work\7\s\packages\office-ui-fabric-react\gulpfile.js [04:06:50] Starting gulp [04:06:50] Starting 'default'... [04:06:50] Starting subtask 'pre-copy'... [04:06:50] Finished subtask 'pre-copy' after 21 ms [04:06:50] Starting subtask 'sass'... [04:07:00] Finished subtask 'sass' after 9.76 s [04:07:00] Starting subtask 'typescript'... [04:07:00] [typescript] Using custom version: 2.1.5 [04:07:00] Starting subtask 'tslint'... [04:07:00] Starting subtask 'text'... [04:07:52] Finished subtask 'text' after 52 s [04:07:56] Finished subtask 'tslint' after 55 s [04:08:05] Finished subtask 'typescript' after 1.07 min [04:08:05] Starting subtask 'post-copy'... [04:08:05] Finished subtask 'post-copy' after 286 ms [04:08:05] Starting subtask 'webpack'... Webpack Bundle Analyzer saved report to D:\agent\2\_work\7\s\packages\office-ui-fabric-react\dist\office-ui-fabric-react.stats.html Webpack Bundle Analyzer saved report to D:\agent\2\_work\7\s\packages\office-ui-fabric-react\dist\office-ui-fabric-react.stats.html [04:09:14] [webpack] Bundled: 'office-ui-fabric-react.js', size: 922888 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'office-ui-fabric-react.js.map', size: 922888 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'office-ui-fabric-react.min.js', size: 922888 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'office-ui-fabric-react.min.js.map', size: 922888 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-app.js', size: 1393750 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-app.js.map', size: 1393750 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-components.js', size: 836313 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-components.js.map', size: 836313 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-vendor.js', size: 707094 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-vendor.js.map', size: 707094 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-app.min.js', size: 1393750 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-app.min.js.map', size: 1393750 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-components.min.js', size: 836313 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-components.min.js.map', size: 836313 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-vendor.min.js', size: 707094 bytes, took 68340 ms. [04:09:14] [webpack] Bundled: 'demo-vendor.min.js.map', size: 707094 bytes, took 68340 ms. [04:09:14] Finished subtask 'webpack' after 1.15 min [04:09:14] Starting subtask 'karma'... 14 01 2017 04:09:35.942:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/ 14 01 2017 04:09:35.954:INFO [launcher]: Starting browser PhantomJS 14 01 2017 04:09:40.682:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Connected on socket BUDx1viXSXH9TiFFAAAA with id 33891490 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 √ can throw when requiring a store in an environment without any stores hosted √ 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 LOG: 'BUTTON' Button √ can render without an onClick. LOG: 'BUTTON' √ can render with an onClick. LOG: 'A' √ can render with an href Calendar √ can handle invalid starting dates Test rendering simplest calendar √ Verify day picker header √ Verify first day of week √ Verify day picker selected date & navigated date √ Verify go to today Test rendering most complicated calendar √ Verify day picker header √ Verify first day of week √ Verify day picker selected date & navigated date √ Verify month picker seen √ Verify month picker header √ Verify month picker months √ Verify go to today Callout √ target id strings does not throw exception √ target MouseEvents does not throw exception √ target HTMLElements does not throw exception √ targetElement HTMLElements does not throw exception √ without target does not throw exception √ passes event to onDismiss prop ChoiceGroup √ Can change options. √ An individual choice option can be disabled √ When choicegroup is disabled all choice options are disabled ColorPicker √ Props are correctly parsed √ Reacts to props changes √ onColorChange is called CommandBar √ opens a menu with deprecated IContextualMenuItem.items property √ opens a menu with IContextualMenuItem.subMenuProps.items property ContextualMenu √ does not have a scrollbar due to an overflowing icon √ closes on left arrow if it is a submenu √ does not close on left arrow if it is a submenu with horizontal arrowDirection √ does not close on left arrow if it is a submenu with bidirectional arrowDirection √ opens a submenu item on right arrow √ opens a submenu item on click √ still works with deprecated IContextualMenuItem.items property √ renders headers properly √ does not return a value if no items are given Dropdown √ Can flip between enabled and disabled. FocusZone √ can use arrows vertically √ can use arrows horizontally √ can use arrows bidirectionally √ correctly skips data-not-focusable elements Image √ renders an image √ can cover a portrait (tall) frame with a square image √ can cover a landscape (wide) frame with a square image √ can cover a landscape (wide) parent element with a square image √ can cover a portrait (tall) parent element with a square image Label √ renders a label Layer √ can render in a targeted LayerHost and pass context through Persona initials and colors √ renders with expected initialsColor if none was provided √ uses provided initialsColor if one was specified √ calculates an expected initials in LTR if one was not specified √ calculates an expected initials in RTL if one was not specified √ uses provided initial Rating √ Can change rating. √ Clamps input rating to allowed range. √ When rating is disabled cannot change rating 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 √ can render a default value √ can render a default value as a textarea 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 √ should trigger validation only on focus √ should trigger validation only on blur √ should trigger validation on both blur and focus Toggle √ renders a label √ can call the callback on a change of toggle √ doesn't update the state if the user provides checked √ doesn't render a label element if none is provided BaseAutoFill √ correctly autofills √ does not autofill if suggestedDisplayValue does not match input √ does not autofill if left or right arrow has been pressed √ will autofill if keyCode up or down is pressed Pickers BasePicker √ can provide custom renderers TagPicker √ can search for and select tags 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 falsereturns true if data-is-visible is truereturns true if data-is-visible is undefined but element is visible isElementTabbable √ returns false on nullreturns false on normal divs √ returns false on disabled buttons √ returns true on buttons √ returns true on anchors √ returns true on input elements √ returns true on textarea elements √ works with tabbable divs √ returns true with role=button divs √ returns false with role=button disabled buttons 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 √ Correctly determines max height √ Correctly determines max height with a gapSpace included 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 √ can remove selection if you click on dead space Finished in 4.006 secs / 2.43 secs SUMMARY: √ 185 tests completed [04:09:50] Finished subtask 'karma' after 37 s [04:09:50] Starting subtask 'run-ssr-tests'... [04:09:56] Finished subtask 'run-ssr-tests' after 5.11 s [04:09:56] Finished 'default' after 3.08 min Fabric components √ are SSR compliant on import 1) are SSR compliant on render 1 passing (3s) 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. [04:09:59] ==================[ Finished ]================== [04:10:00] Project office-ui-fabric-react version: 0.87.1 [04:10:00] Build tools version: 1.1.0 [04:10:00] Node version: v4.4.3 [04:10:00] Total duration: 3.18 min