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

Unified Diff: LayoutTests/accessibility/crash-on-accessing-properties-at-initial-state.html

Issue 216343002: Add a test that confirms there's no crash on accessing properties of AccesibilityObject at the init… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/accessibility/crash-on-accessing-properties-at-initial-state.html
diff --git a/LayoutTests/accessibility/crash-on-accessing-properties-at-initial-state.html b/LayoutTests/accessibility/crash-on-accessing-properties-at-initial-state.html
new file mode 100644
index 0000000000000000000000000000000000000000..801f4f4739f260e5d8ec7e5db71294221778c5c9
--- /dev/null
+++ b/LayoutTests/accessibility/crash-on-accessing-properties-at-initial-state.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body id="body">
+<script>
+
+ description("This tests that there's no crash when accessising any properties at the initial state.");
+
+ function enumelateProperties(value) {
+ if (typeof(value) !== 'object')
+ return;
+ for (var key in value)
+ enumelateProperties(value[key]);
+ }
+
+ if (window.accessibilityController)
+ enumelateProperties(window.accessibilityController);
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698