Skip to content

Commit

Permalink
Bug 1866137 [wpt PR 43310] - Remove testharness from reftest, a=testonly
Browse files Browse the repository at this point in the history
Automatic update from web-platform-tests
Remove testharness from reftest

I somehow made this both a testharness test and a reftest. This
CL converts this to just a reftest, to avoid breaking things [1].

[1] web-platform-tests/wpt#43303

Bug: 1236777
Change-Id: I89fc76e68a24ab12c4a9efeaac36183dfb85b746
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5055427
Commit-Queue: Mason Freed <masonfchromium.org>
Commit-Queue: Joey Arhar <jarharchromium.org>
Auto-Submit: Mason Freed <masonfchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Cr-Commit-Position: refs/heads/main{#1228158}

--

wpt-commits: e8e0556f5ce4c1fec9ef0340e14d0cfa56d001c9
wpt-pr: 43310

UltraBlame original commit: 58087d221478dbbb0154b660e20b62de4f9db137
  • Loading branch information
marco-c committed Nov 30, 2023
1 parent 179bc86 commit c111f35
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://drafts.csswg.org/cssom/#extensions-to-the-document-or-shadow-root-interface">
<link rel="match" href="CSSStyleSheet-constructable-concat-ref.html">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<span>This should be green</span>
<div id=host></div>
<pre id=errors></pre>

<script>
test(function() {
function assert_equals(val1,val2) {
if (val1 === val2) {
return;
}
const t = document.createTextNode(`FAIL! ${val1} should be equal to ${val2}\n`);
errors.appendChild(t);
}
window.onload = () => {
const sheet = new CSSStyleSheet();
sheet.replaceSync('span {background-color:green;}');
assert_equals(document.adoptedStyleSheets.length,0);
Expand All @@ -24,5 +30,5 @@
assert_equals(shadow.adoptedStyleSheets.length,0);
shadow.adoptedStyleSheets = shadow.adoptedStyleSheets.concat([sheet]);
assert_equals(shadow.adoptedStyleSheets.length,1);
}, "adoptedStyleSheets should allow .concat on empty starting values");
};
</script>

0 comments on commit c111f35

Please sign in to comment.