Commit 68714400 authored by Mason Freed's avatar Mason Freed Committed by Commit Bot

Fix declarative Shadow DOM perf test

A previous CL added an opt-in for declarative Shadow DOM, and
this test needs to activate that opt in.

Fixed: 1146530
Change-Id: Iefa585f0a4c83208c6aa977fc65a85ebf6fb4a8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2523734
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: default avatarKouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825239}
parent be33a660
...@@ -18,10 +18,12 @@ function createDeepShadowTemplateContent(levels, slotted) { ...@@ -18,10 +18,12 @@ function createDeepShadowTemplateContent(levels, slotted) {
// Build templates once // Build templates once
const templateSlotted = document.createElement('template'); const templateSlotted = document.createElement('template');
document.body.appendChild(templateSlotted); document.body.appendChild(templateSlotted);
templateSlotted.content.allowDeclarativeShadowDom = true;
templateSlotted.innerHTML = createDeepShadowTemplateContent(hostChildren, true); templateSlotted.innerHTML = createDeepShadowTemplateContent(hostChildren, true);
const templateNested = document.createElement('template'); const templateNested = document.createElement('template');
document.body.appendChild(templateNested); document.body.appendChild(templateNested);
templateSlotted.content.allowDeclarativeShadowDom = true;
templateNested.innerHTML = createDeepShadowTemplateContent(hostChildren, false); templateNested.innerHTML = createDeepShadowTemplateContent(hostChildren, false);
if (!templateSlotted.content.firstChild.shadowRoot) { if (!templateSlotted.content.firstChild.shadowRoot) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment