From d0b6622b9a9e8987c44303bc9c1494185727dc62 Mon Sep 17 00:00:00 2001 From: Kara Erickson Date: Wed, 20 Feb 2019 14:45:41 -0800 Subject: [PATCH] test(ivy): turn on more passing Material tests (#28876) This commit removes more test from the Material blocklist so that they will run on CI. After static query support was added, they are no longer failing. PR Close #28876 --- .../angular_material_test_blocklist.js | 714 +++++------------- 1 file changed, 169 insertions(+), 545 deletions(-) diff --git a/tools/material-ci/angular_material_test_blocklist.js b/tools/material-ci/angular_material_test_blocklist.js index 9a908d3949..df0118c179 100644 --- a/tools/material-ci/angular_material_test_blocklist.js +++ b/tools/material-ci/angular_material_test_blocklist.js @@ -17,126 +17,14 @@ // tslint:disable window.testBlocklist = { - "Portals CdkPortalOutlet should load a template into the portal": { - "error": "TypeError: Cannot read property 'createEmbeddedView' of undefined", - "notes": "Unknown" - }, - "Portals CdkPortalOutlet should project template context bindings in the portal": { - "error": "TypeError: Cannot read property 'createEmbeddedView' of undefined", - "notes": "Unknown" - }, - "Portals CdkPortalOutlet should set the `portal` when attaching a component portal programmatically": { - "error": "TypeError: Cannot read property 'attachComponentPortal' of undefined", - "notes": "Unknown" - }, "Portals CdkPortalOutlet should not clear programmatically-attached portals on init": { - "error": "TypeError: Cannot read property 'attach' of undefined", - "notes": "Unknown" - }, - "Portals CdkPortalOutlet should be considered attached when attaching using `attach`": { - "error": "TypeError: Cannot read property 'hasAttached' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "Portals CdkPortalOutlet should be considered attached when attaching using `attachComponentPortal`": { - "error": "TypeError: Cannot read property 'hasAttached' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "Portals CdkPortalOutlet should be considered attached when attaching using `attachTemplatePortal`": { - "error": "TypeError: Cannot read property 'hasAttached' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "Portals CdkPortalOutlet should use the `ComponentFactoryResolver` from the portal, if available": { - "error": "TypeError: Cannot read property 'attachComponentPortal' of undefined", + "error": "ObjectUnsubscribedError: object unsubscribed", "notes": "Unknown" }, "Portals DomPortalOutlet should attach and detach a component portal without a ViewContainerRef": { "error": "Error: Expected '

Pizza

Chocolate

' to be '', 'Expected the DomPortalOutlet to be empty after detach'.", "notes": "Unknown" }, - "AutofillMonitor should add monitored class and listener upon monitoring": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should not add multiple listeners to the same element": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should remove monitored class and listener upon stop monitoring": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should stop monitoring all monitored elements upon destroy": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should emit and add filled class upon start animation": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should emit and remove filled class upon end animation": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should cleanup filled class if monitoring stopped in autofilled state": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should complete the stream when monitoring is stopped": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should emit on stream inside the NgZone": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AutofillMonitor should not emit on init if input is unfilled": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should be able to create a message element": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should not register empty strings": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should not register non-string values": { - "error": "Error: Expected function not to throw, but it threw TypeError: Cannot read property 'nativeElement' of undefined.", - "notes": "Unknown" - }, - "AriaDescriber should not throw when trying to remove non-string value": { - "error": "Error: Expected function not to throw, but it threw TypeError: Cannot read property 'nativeElement' of undefined.", - "notes": "Unknown" - }, - "AriaDescriber should de-dupe a message registered multiple times": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should be able to register multiple messages": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should be able to unregister messages": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should be able to unregister messages while having others registered": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should be able to append to an existing list of aria describedby": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should be able to handle multiple regisitrations of the same message to an element": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "AriaDescriber should clear any pre-existing containers": { - "error": "TypeError: Cannot read property 'nativeElement' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, "CdkVirtualScrollViewport with FixedSizeVirtualScrollStrategy should render initial state": { "error": "TypeError: Cannot read property 'nativeElement' of undefined", "notes": "Unknown" @@ -345,74 +233,6 @@ window.testBlocklist = { "error": "Error: Uncaught (in promise): TypeError: Cannot read property 'nativeElement' of undefined", "notes": "Unknown" }, - "CdkAccordion should not register nested items to the same accordion": { - "error": "TypeError: Cannot read property 'accordion' of undefined", - "notes": "Unknown" - }, - "CdkDrag standalone draggable should enable native drag interactions when there is a drag handle": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should not be able to drag the entire element if it has a handle": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should be able to drag an element using its handle": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should not be able to drag the element if the handle is disabled": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should not be able to drag using the handle if the element is disabled": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should be able to use a handle that was added after init": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should be able to use more than one handle to drag the element": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should be able to drag with a handle that is not a direct descendant": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should disable the tap highlight while dragging via the handle": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag draggable with a handle should preserve any existing `webkitTapHighlightColor`": { - "error": "TypeError: Cannot read property 'removeEventListener' of null", - "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" - }, - "CdkDrag in a drop container should be able to customize the preview element": { - "error": "Error: Expected cdk-drag cdk-drag-preview to contain 'custom-preview'.", - "notes": "Unknown" - }, - "CdkDrag in a drop container should position custom previews next to the pointer": { - "error": "Error: Expected 'translate3d(8px, 33px, 0px)' to be 'translate3d(50px, 50px, 0px)'.", - "notes": "Unknown" - }, - "CdkDrag in a drop container should lock position inside a drop container along the x axis": { - "error": "Error: Expected 'translate3d(58px, 33px, 0px)' to be 'translate3d(100px, 50px, 0px)'.", - "notes": "Unknown" - }, - "CdkDrag in a drop container should lock position inside a drop container along the y axis": { - "error": "Error: Expected 'translate3d(8px, 83px, 0px)' to be 'translate3d(50px, 100px, 0px)'.", - "notes": "Unknown" - }, - "CdkDrag in a drop container should inherit the position locking from the drop container": { - "error": "Error: Expected 'translate3d(58px, 33px, 0px)' to be 'translate3d(100px, 50px, 0px)'.", - "notes": "Unknown" - }, - "CdkDrag in a drop container should be able to customize the placeholder": { - "error": "Error: Expected cdk-drag cdk-drag-placeholder to contain 'custom-placeholder'.", - "notes": "Unknown" - }, "CdkTable in a typical simple use case should initialize with a connected data source": { "error": "TypeError: Cannot read property 'viewContainer' of undefined", "notes": "FW-1019: Design new API to replace static queries" @@ -645,92 +465,104 @@ window.testBlocklist = { "error": "TypeError: Cannot read property 'viewContainer' of undefined", "notes": "FW-1019: Design new API to replace static queries" }, - "CdkTree should clear out the `mostRecentTreeNode` on destroy": { - "error": "Error: Expected false to be true.", - "notes": "Unknown" - }, - "CdkTree flat tree should initialize with a connected data source": { - "error": "TypeError: Cannot read property 'dataSource' of undefined", - "notes": "Unknown" - }, - "CdkTree flat tree should initialize with rendered dataNodes": { - "error": "TypeError: Cannot read property 'classList' of undefined", - "notes": "Unknown" - }, - "CdkTree flat tree with toggle should expand/collapse the node": { - "error": "TypeError: Cannot read property 'click' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "CdkTree flat tree with toggle should expand/collapse the node recursively": { - "error": "TypeError: Cannot read property 'click' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "CdkTree flat tree with trackBy should add/remove/move nodes with reference-based trackBy": { - "error": "TypeError: Cannot read property 'getAttribute' of undefined", - "notes": "Unknown" - }, - "CdkTree flat tree with trackBy should add/remove/move nodes with property-based trackBy": { - "error": "TypeError: Cannot read property 'getAttribute' of undefined", - "notes": "Unknown" - }, - "CdkTree flat tree with trackBy should add/remove/move nodes with index-based trackBy": { - "error": "TypeError: Cannot read property 'getAttribute' of undefined", - "notes": "Unknown" - }, - "CdkTree nested tree should initialize with a connected data source": { - "error": "TypeError: Cannot read property 'dataSource' of undefined", - "notes": "Unknown" - }, - "CdkTree nested tree should initialize with rendered dataNodes": { - "error": "TypeError: Cannot read property 'classList' of undefined", - "notes": "Unknown" - }, - "CdkTree nested tree with toggle should expand/collapse the node multiple times": { - "error": "TypeError: Cannot read property 'click' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "CdkTree nested tree with toggle should expand/collapse the node recursively": { - "error": "TypeError: Cannot read property 'click' of undefined", - "notes": "FW-1019: Design new API to replace static queries" - }, - "CdkTree nested tree with trackBy should add/remove/move children nodes with reference-based trackBy": { - "error": "Error: Expected 0 to be 3.", - "notes": "Unknown" - }, - "CdkTree nested tree with trackBy should add/remove/move children nodes with property-based trackBy": { - "error": "Error: Expected 0 to be 3.", - "notes": "Unknown" - }, - "CdkTree nested tree with trackBy should add/remove/move children nodes with index-based trackBy": { - "error": "Error: Expected 0 to be 3.", - "notes": "Unknown" - }, - "CdkTree nested tree should throw an error when missing function in nested tree": { - "error": "Error: Expected function to throw an exception with message 'Could not find functions for nested/flat tree in tree control.', but it threw an exception with message 'Cannot read property 'viewContainer' of undefined'.", - "notes": "Unknown" - }, - "CdkTree nested tree should throw an error when missing function in flat tree": { - "error": "Error: Expected function to throw an exception with message 'Could not find functions for nested/flat tree in tree control.', but it threw an exception with message 'Cannot read property 'viewContainer' of undefined'.", - "notes": "Unknown" - }, - "CdkTree with depth should have correct depth for nested tree": { - "error": "Error: Expected 0 to be 5.", - "notes": "Unknown" - }, - "MatAccordion should not register nested panels to the same accordion": { + "CdkAccordion should not register nested items to the same accordion": { "error": "TypeError: Cannot read property 'accordion' of undefined", "notes": "Unknown" }, - "MatExpansionPanel should toggle the panel when pressing SPACE on the header": { - "error": "Error: : could not find an object to spy upon for toggle()", + "CdkDrag standalone draggable should enable native drag interactions when there is a drag handle": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should not be able to drag the entire element if it has a handle": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should be able to drag an element using its handle": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should not be able to drag the element if the handle is disabled": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should not be able to drag using the handle if the element is disabled": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should be able to use a handle that was added after init": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should be able to use more than one handle to drag the element": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should be able to drag with a handle that is not a direct descendant": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should disable the tap highlight while dragging via the handle": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag draggable with a handle should preserve any existing `webkitTapHighlightColor`": { + "error": "TypeError: Cannot read property 'removeEventListener' of null", + "notes": "FW-1010: onDestroy hook is called twice for directives that are also used in a provider" + }, + "CdkDrag in a drop container should be able to customize the preview element": { + "error": "Error: Expected cdk-drag cdk-drag-preview to contain 'custom-preview'.", "notes": "Unknown" }, - "MatExpansionPanel should toggle the panel when pressing ENTER on the header": { - "error": "Error: : could not find an object to spy upon for toggle()", + "CdkDrag in a drop container should position custom previews next to the pointer": { + "error": "Error: Expected 'translate3d(8px, 33px, 0px)' to be 'translate3d(50px, 50px, 0px)'.", "notes": "Unknown" }, - "MatExpansionPanel should not toggle if a modifier key is pressed": { - "error": "Error: : could not find an object to spy upon for toggle()", + "CdkDrag in a drop container should lock position inside a drop container along the x axis": { + "error": "Error: Expected 'translate3d(58px, 33px, 0px)' to be 'translate3d(100px, 50px, 0px)'.", + "notes": "Unknown" + }, + "CdkDrag in a drop container should lock position inside a drop container along the y axis": { + "error": "Error: Expected 'translate3d(8px, 83px, 0px)' to be 'translate3d(50px, 100px, 0px)'.", + "notes": "Unknown" + }, + "CdkDrag in a drop container should inherit the position locking from the drop container": { + "error": "Error: Expected 'translate3d(58px, 33px, 0px)' to be 'translate3d(100px, 50px, 0px)'.", + "notes": "Unknown" + }, + "CdkDrag in a drop container should be able to customize the placeholder": { + "error": "Error: Expected cdk-drag cdk-drag-placeholder to contain 'custom-placeholder'.", + "notes": "Unknown" + }, + "CdkTree flat tree should initialize should be able to use units different from px for the indentation": { + "error": "Error: Failed: Expected node level to be 15rem but was 28px", + "notes": "Unknown" + }, + "CdkTree flat tree should initialize should default to px if no unit is set for string value indentation": { + "error": "Error: Failed: Expected node level to be 17px but was 28px", + "notes": "Unknown" + }, + "CdkTree flat tree with toggle should expand/collapse the node": { + "error": "Error: Failed: Expected node level to be 40px but was ", + "notes": "Unknown" + }, + "CdkTree flat tree with toggle should expand/collapse the node recursively": { + "error": "Error: Failed: Expected node level to be 40px but was ", + "notes": "Unknown" + }, + "CdkTree flat tree with trackBy should add/remove/move nodes with property-based trackBy": { + "error": "Error: Expected null to be '1'.", + "notes": "Unknown" + }, + "CdkTree flat tree with trackBy should add/remove/move nodes with index-based trackBy": { + "error": "Error: Expected null to be '0'.", + "notes": "Unknown" + }, + "CdkTree nested tree with toggle should expand/collapse the node multiple times": { + "error": "Error: Expected 3 to be 1, 'Expect node expanded'.", + "notes": "Unknown" + }, + "CdkTree nested tree with toggle should expand/collapse the node recursively": { + "error": "Error: Failed: Expected node descendant num to be 2 but was 0", "notes": "Unknown" }, "MatButton should apply class based on color attribute": { @@ -789,18 +621,6 @@ window.testBlocklist = { "error": "Error: Template error: Can't bind to 'disabled' since it isn't a known property of 'a'.", "notes": "FW-1037: Host bindings for host objects in metadata are inherited" }, - "MatInput without forms validates the type": { - "error": "Error: Input type \"file\" isn't supported by matInput.", - "notes": "Unknown" - }, - "MatInput without forms should not highlight when focusing a readonly input": { - "error": "Error: Expected true to be false.", - "notes": "Unknown" - }, - "MatInput with textarea autosize should work in a step": { - "error": "TypeError: Cannot read property 'getBoundingClientRect' of null", - "notes": "Unknown" - }, "MatChipList StandardChipList basic behaviors should toggle the chips disabled state based on whether it is disabled": { "error": "Error: Expected true to be false.", "notes": "Unknown" @@ -873,10 +693,6 @@ window.testBlocklist = { "error": "TypeError: Cannot read property 'focus' of undefined", "notes": "MatChipList does not find MatChip content children because descendants is not true anymore. TODO: Fix spec so that it does not have the wrapping div" }, - "MatGridList should throw error if rowHeight ratio is invalid": { - "error": "Error: mat-grid-list: invalid ratio given for row-height: \"4:3:2\"", - "notes": "Unknown" - }, "MatStepper basic stepper should go to next available step when the next button is clicked": { "error": "Error: Expected 2 to be 1.", "notes": "Unknown" @@ -945,38 +761,6 @@ window.testBlocklist = { "error": "Error: Expected mat-slide-toggle-thumb-container to contain 'mat-dragging'.", "notes": "Unknown" }, - "MatTabGroup basic behavior should change selected index on click": { - "error": "Error: Expected 0 to be 1.", - "notes": "Unknown" - }, - "MatTabGroup basic behavior should support two-way binding for selectedIndex": { - "error": "TypeError: ctx_r13779._handleClick is not a function", - "notes": "Unknown" - }, - "MatTabGroup basic behavior should fire animation done event": { - "error": "TypeError: ctx_r14175._handleClick is not a function", - "notes": "Unknown" - }, - "MatTabGroup basic behavior should emit focusChange event on click": { - "error": "Error: Expected spy handleFocus to have been called once. It was called 0 times.", - "notes": "Unknown" - }, - "MatTabGroup basic behavior should emit focusChange on arrow key navigation": { - "error": "Error: Expected spy handleFocus to have been called once. It was called 0 times.", - "notes": "Unknown" - }, - "MatTabGroup lazy loaded tabs should lazy load the second tab": { - "error": "TypeError: ctx_r15099._handleClick is not a function", - "notes": "Unknown" - }, - "MatSidenav should be fixed position when in fixed mode": { - "error": "Error: Expected ng-tns-c28983-0 mat-drawer ng-trigger ng-trigger-transform mat-drawer-over ng-star-inserted to contain 'mat-sidenav-fixed'.", - "notes": "Unknown" - }, - "MatSidenav should set fixed bottom and top when in fixed mode": { - "error": "Error: Expected '' to be '20px'.", - "notes": "Unknown" - }, "MatDrawer methods should be able to open": { "error": "Error: Expected 0 to be 1.", "notes": "Unknown" @@ -998,27 +782,23 @@ window.testBlocklist = { "notes": "Unknown" }, "MatDrawer methods should restore focus on close if focus is inside drawer": { - "error": "Error: Expected to be to be