Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-in-template.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-in-template.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-in-template.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..565e46a8332b3be03ed2eff20f5288aa102722ca |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-in-template.html |
| @@ -0,0 +1,14 @@ |
| +<!DOCTYPE html> |
| +<title> Test href value of anchor element in template.</title> |
| +<script src="../../../resources/testharness.js"></script> |
| +<script src="../../../resources/testharnessreport.js"></script> |
| +<template> |
| + <a href="SUCCESS"></a> |
| +</template> |
| +<script> |
| +test(function() { |
| + var a = document.querySelector('template').content.querySelector('a'); |
|
foolip
2017/04/25 09:23:44
Can you put this test in LayoutTests/external/wpt/
|
| + assert_not_equals(a.href, ""); |
| + assert_equals(a.getAttribute('href'), "SUCCESS"); |
| +}); |
| +</script> |