-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
21 changed files
with
139 additions
and
376 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
registerStyles( | ||
'vaadin-app-layout', | ||
css` | ||
:host { | ||
transition: none !important; | ||
} | ||
`, | ||
); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,8 @@ | ||
import sinon from 'sinon'; | ||
|
||
/** | ||
* Resolves once the function is invoked on the given object. | ||
*/ | ||
function onceInvoked(object, functionName) { | ||
return new Promise((resolve) => { | ||
const stub = sinon.stub(object, functionName).callsFake((...args) => { | ||
stub.restore(); | ||
object[functionName](...args); | ||
resolve(); | ||
}); | ||
}); | ||
} | ||
|
||
/** | ||
* Resolves once the ResizeObserver in BoardRow has processed a resize. | ||
*/ | ||
export async function onceResized(boardRow) { | ||
await onceInvoked(boardRow, '_onResize'); | ||
} | ||
import { nextResize } from '@vaadin/testing-helpers'; | ||
|
||
/** | ||
* Resolves once the ResizeObserver in all the BoardRows has processed a resize. | ||
*/ | ||
export function allResized(boardRows) { | ||
return Promise.all(boardRows.map((boardRow) => onceResized(boardRow))); | ||
return Promise.all(boardRows.map((boardRow) => nextResize(boardRow))); | ||
} |
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
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
Oops, something went wrong.