File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 11import { Element } from '@core/element'
22import { html , css , nothing } from 'lit'
33import { customElement , property } from 'lit/decorators.js'
4+ import { viewSource } from '../../utils/TestRunner.js'
45
56import { CollapseableEntry } from './collapseableEntry.js'
67
@@ -82,17 +83,6 @@ export class ExplorerTestEntry extends CollapseableEntry {
8283 this . requestUpdate ( )
8384 }
8485
85- #viewSource( ) {
86- if ( ! this . callSource ) {
87- return
88- }
89- window . dispatchEvent (
90- new CustomEvent ( 'app-source-highlight' , {
91- detail : this . callSource
92- } )
93- )
94- }
95-
9686 get hasPassed ( ) {
9787 return this . state === TestState . PASSED
9888 }
@@ -181,7 +171,7 @@ export class ExplorerTestEntry extends CollapseableEntry {
181171 ` }
182172 < button
183173 class ="p-1 rounded hover:bg-toolbarHoverBackground my-1 group "
184- @click ="${ ( ) => this . # viewSource( ) } "
174+ @click ="${ ( ) => viewSource ( this . callSource ) } "
185175 >
186176 < icon-mdi-eye class ="group-hover:text-chartsYellow "> </ icon-mdi-eye >
187177 </ button >
You can’t perform that action at this time.
0 commit comments