Commit 86d06b43 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@819cfbf5f34fc8a2c8516b1765db8c232dfd4686

Using wpt-import in Chromium 557e241c.

Build: https://build.chromium.org/p/chromium.infra.cron/builders/wpt-importer/builds/6908

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
jsbell@chromium.org:
  external/wpt/FileAPI

TBR=qyearsley

No-Export: true
Change-Id: I7c7d93d652cff833679583d11c0fa6155d7f2574
Reviewed-on: https://chromium-review.googlesource.com/806680
Commit-Queue: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Reviewed-by: default avatarBlink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521494}
parent 288e2479
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>FileAPI Test: Creating Blob URL via XMLHttpRequest as image source</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="author" title="JunChen Xia" href="mailto:xjconlyme@gmail.com">
<link rel="match" href="url_xmlhttprequest_img-ref.html">
<p>Test passes if there is a filled blue square.</p>
<p>
<img id="fileDisplay">
</p>
<script src="/common/reftest-wait.js"></script>
<script>
var http = new XMLHttpRequest();
http.open("GET", "/images/blue96x96.png", true);
http.responseType = "blob";
http.onloadend = function() {
var fileDisplay = document.querySelector("#fileDisplay");
fileDisplay.src = window.URL.createObjectURL(http.response);
fileDisplay.onload = takeScreenshot;
};
http.send();
</script>
</html>
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