Commit b4eed002 authored by japhet@chromium.org's avatar japhet@chromium.org

Update a couple more tests for load completion definition change

BUG=426520

Review URL: https://codereview.chromium.org/715863004

git-svn-id: svn://svn.chromium.org/blink/trunk@185316 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 248fe6c8
......@@ -13,8 +13,11 @@ function runTest() {
if (sessionStorage.pageReloaded && sessionStorage.scaleFactorIsSet) {
delete sessionStorage.pageReloaded;
delete sessionStorage.scaleFactorIsSet;
if (!window.manualNotifyDone)
testRunner.notifyDone();
if (!window.manualNotifyDone) {
setTimeout(function() {
testRunner.notifyDone();
}, 0);
}
} else {
// Right now there is a bug that srcset does not properly deal with dynamic changes to the scale factor,
// so to work around that, we must reload the page to get the new image.
......
......@@ -13,7 +13,11 @@ function runTest() {
if (sessionStorage.pageReloaded && sessionStorage.scaleFactorIsSet) {
delete sessionStorage.pageReloaded;
delete sessionStorage.scaleFactorIsSet;
testRunner.notifyDone();
if (!window.manualNotifyDone) {
setTimeout(function() {
testRunner.notifyDone();
}, 0);
}
} else {
// Right now there is a bug that srcset does not properly deal with dynamic changes to the scale factor,
// so to work around that, we must reload the page to get the new image.
......
......@@ -10,6 +10,16 @@
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<script xlink:href="../../resources/run-after-display.js"></script>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
runAfterDisplay(function() {
if (window.testRunner)
testRunner.notifyDone();
});
</script>
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
template-version="1.4" reviewer="SVGWG" author="Jon Ferraiolo" status="accepted"
version="$Revision: 1.6 $" testname="$RCSfile: text-intro-09-b.svg,v $">
......@@ -76,4 +86,4 @@
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>
\ No newline at end of file
</svg>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment