+2014-08-01 Myles C. Maxfield <mmaxfield@apple.com>
+
+ Unreviewed post-review test fixup
+
+ * editing/pasteboard/img-srcset-copy-paste-canonicalization.html:
+
2014-08-01 Beth Dakin <bdakin@apple.com>
REGRESSION (r171891): platform/mac/fast/scrolling/scroll-select-bottom-test.html
var sourceImageSegments;
var destinationImageSegments;
+ var finishTestCount = 0;
+ function maybeFinishTest() {
+ ++finishTestCount;
+ if (finishTestCount == 2)
+ finishJSTest();
+ }
+
function runTests(href) {
iframeHref = href;
destinationImage.onerror = function() {
testFailed("Image should not fail to load");
- finishJSTest();
+ maybeFinishTest();
}
- image.onload = function() {
- finishJSTest();
+ destinationImage.onload = function() {
+ maybeFinishTest();
}
sourceImageSegments = sourceImage.getAttribute("srcset").split(" ");
shouldBe("destinationImageSegments[1]", "\"2x,\"");
shouldBe("sourceImageSegments[3]", "\"1x\"");
shouldBe("destinationImageSegments[3]", "\"1x\"");
+ maybeFinishTest();
}
</script>
<script src="../../resources/js-test-post.js"></script>