Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: LayoutTests/imported/web-platform-tests/FileAPI/reading-data-section/FileReader-event-handler-attributes.html

Issue 1236713002: Import FileAPI tests from web-platform-tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh, stupid baselines Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/imported/web-platform-tests/FileAPI/reading-data-section/FileReader-event-handler-attributes.html
diff --git a/LayoutTests/imported/web-platform-tests/FileAPI/reading-data-section/FileReader-event-handler-attributes.html b/LayoutTests/imported/web-platform-tests/FileAPI/reading-data-section/FileReader-event-handler-attributes.html
new file mode 100644
index 0000000000000000000000000000000000000000..1add0dda5d814f16b9efcc17a4b4e3a17531bbaa
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/FileAPI/reading-data-section/FileReader-event-handler-attributes.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>FileReader event handler attributes</title>
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<div id=log></div>
+<script>
+var attributes = [
+ "onloadstart",
+ "onprogress",
+ "onload",
+ "onabort",
+ "onerror",
+ "onloadend",
+];
+attributes.forEach(function(a) {
+ test(function() {
+ var reader = new FileReader();
+ assert_equals(reader[a], null,
+ "event handler attribute should initially be null");
+ }, "FileReader." + a + ": initial value");
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698