Skip to content

Commit 7b7183b

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[cleanup] Remove test
The test verified old behavior that was there when we were still minifying lit-html templates. That logic was removed in https://crrev.com/c/4765264 Bug: none Change-Id: I3ab019ed0b2e7740b7643299ea8d9b7b17c3124f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7095646 Reviewed-by: Alex Rudenko <[email protected]> Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]> Auto-Submit: Nikolay Vitkov <[email protected]>
1 parent d58eb48 commit 7b7183b

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

front_end/ui/legacy/XLink.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ describe('XLink', () => {
2525
});
2626
});
2727

28-
describe('HTML minification', () => {
29-
it('properly minifies whitespaces in release mode', () => {
30-
const target = document.createElement('section');
31-
render(UI.XLink.sample, target, {host: this});
32-
const result = target.querySelector('p')?.innerText;
33-
assert.strictEqual(result, 'Hello, world!');
34-
});
35-
});
36-
3728
describe('tabindex', () => {
3829
it('is 0 by default', () => {
3930
const link = UI.XLink.XLink.create('https://example.com/', 'Click me');

front_end/ui/legacy/XLink.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import * as Host from '../../core/host/host.js';
66
import * as Platform from '../../core/platform/platform.js';
7-
import {html} from '../lit/lit.js';
87
import * as VisualLogging from '../visual_logging/visual_logging.js';
98

109
import * as ARIAUtils from './ARIAUtils.js';
@@ -155,5 +154,3 @@ export class ContextMenuProvider implements Provider<Node> {
155154
}
156155

157156
customElements.define('x-link', XLink);
158-
159-
export const sample = html`<p>Hello, <x-link>world!</x-link></p>`;

0 commit comments

Comments
 (0)