chromium/third_party/blink/web_tests/fast/dom/HTMLTemplateElement/inertContents.html

<!DOCTYPE html>
<body>
<script src="../../../resources/js-test.js"></script>
<script>
var testVal = 'script has not run';
</script>
<!-- FIXME: Add non-flaky test for <img> tags -->
<template><script>window.testVal = 'script has run';</script></template>
<script>
description('The test asserts that elements within template contents are "inert", e.g. script does not run.');
shouldBeEqualToString('testVal', 'script has not run');
var templateContent = document.querySelector('template').content;
document.body.appendChild(templateContent);
shouldBeEqualToString('testVal', 'script has run');
</script>
</body>