blob: 20d8c4bed914d2608c48e69db970b6d8a0f05936 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<link id="target" rel="import" href="resources/html-imports-hello.html">
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
<script>
// Behavior is different depending on if the runtime flag is enabled.
if (self.internals.runtimeFlags.htmlImportsEnabled) {
// Runtime flag is enabled, so import will actually work. Explicitly call
// done() to avoid timeout while test framework waits for a test to run.
done();
} else {
test(() => {
assert_equals(target.import, undefined);
}, 'Basic html file should not be imported');
}
</script>