We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5e244 commit cd15c00Copy full SHA for cd15c00
src/lib/select/select.spec.ts
@@ -1836,20 +1836,6 @@ class MultiSelect {
1836
}
1837
1838
1839
-/**
1840
- * TODO: Move this to core testing utility until Angular has event faking
1841
- * support.
1842
- *
1843
- * Dispatches an event from an element.
1844
- * @param eventName Name of the event
1845
- * @param element The element from which the event will be dispatched.
1846
- */
1847
-function dispatchEvent(eventName: string, element: HTMLElement): void {
1848
- let event = document.createEvent('Event');
1849
- event.initEvent(eventName, true, true);
1850
- element.dispatchEvent(event);
1851
-}
1852
-
1853
class FakeViewportRuler {
1854
getViewportRect() {
1855
return {
0 commit comments