| Index: third_party/WebKit/LayoutTests/svg/as-image/svgview-references-use-counters.html
|
| diff --git a/third_party/WebKit/LayoutTests/svg/as-image/svgview-references-use-counters.html b/third_party/WebKit/LayoutTests/svg/as-image/svgview-references-use-counters.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..80112ed1c0690bed3184c84dcf3317402d15f063
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/svg/as-image/svgview-references-use-counters.html
|
| @@ -0,0 +1,40 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script src="../../resources/run-after-layout-and-paint.js"></script>
|
| +<style>
|
| + img {
|
| + width: 100px;
|
| + height: 100px;
|
| + }
|
| +</style>
|
| +<body>
|
| +</body>
|
| +<script>
|
| + var SVGSVGElementFragmentSVGView = 1035; // From UseCounter.h
|
| + var SVGSVGElementFragment = 1036; // From UseCounter.h
|
| + window.jsTestIsAsync = true;
|
| +
|
| + var obj = document.createElement('object');
|
| + obj.data = "resources/svglogo.svg#svgView(viewBox(0,0,150,150))";
|
| + document.body.appendChild(obj);
|
| +
|
| + obj.onload = function() {
|
| + runAfterLayoutAndPaint(function() {
|
| + shouldBeTrue("window.internals.isUseCounted(document.querySelector('object').contentDocument, SVGSVGElementFragmentSVGView)");
|
| + shouldBeFalse("window.internals.isUseCounted(document.querySelector('object').contentDocument, SVGSVGElementFragment)");
|
| +
|
| + var obj = document.createElement('object');
|
| + obj.data = "../css/resources/fragment-identifiers.svg#green";
|
| + document.body.appendChild(obj);
|
| +
|
| + obj.onload = function() {
|
| + runAfterLayoutAndPaint(function() {
|
| + shouldBeTrue("window.internals.isUseCounted(document.querySelector('object').contentDocument, SVGSVGElementFragmentSVGView)");
|
| + shouldBeTrue("window.internals.isUseCounted(document.querySelector('object').contentDocument, SVGSVGElementFragment)");
|
| + finishJSTest();
|
| + });
|
| + };
|
| + });
|
| + };
|
| +</script>
|
| +
|
|
|