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

Unified Diff: LayoutTests/platform/chromium/accessibility/other-aria-attribute-change-sends-notification.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/platform/chromium/accessibility/other-aria-attribute-change-sends-notification.html
diff --git a/LayoutTests/platform/chromium/accessibility/other-aria-attribute-change-sends-notification.html b/LayoutTests/platform/chromium/accessibility/other-aria-attribute-change-sends-notification.html
deleted file mode 100644
index 7eaa112777555240a5ced3333befe4d720b12384..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/accessibility/other-aria-attribute-change-sends-notification.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<script src="../../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-
-<div id="container">
- <button id="aria-busy" aria-busy="false">Busy</button>
- <button id="aria-disabled" aria-disabled="false">Disabled</button>
- <button id="aria-readonly" aria-readonly="false">Readonly</button>
- <button id="aria-required" aria-required="false">Required</button>
-</div>
-
-<div id="console"></div>
-<script>
-description("This test ensures that a change to any ARIA attribute, not just a state, sends a notification.");
-window.jsTestIsAsync = true;
-
-if (window.testRunner && window.accessibilityController) {
- testRunner.dumpAsText();
-
- function accessibleElementById(id) {
- return accessibilityController.accessibleElementById(id);
- }
-
- window.successCount = 0;
- function gotSuccessfulNotification() {
- successCount++;
- if (successCount != 4)
- return;
-
- debug('All notifications received successfully.');
- accessibleElementById('aria-busy').removeNotificationListener();
- accessibleElementById('aria-disabled').removeNotificationListener();
- accessibleElementById('aria-readonly').removeNotificationListener();
- accessibleElementById('aria-required').removeNotificationListener();
-
- document.getElementById('container').hidden = true;
- finishJSTest();
- }
-
- accessibleElementById('aria-busy').addNotificationListener(function(notification) {
- debug('Got ' + notification + ' notification on aria-busy');
- gotSuccessfulNotification();
- });
- document.getElementById('aria-busy').setAttribute('aria-busy', 'true');
-
- accessibleElementById('aria-disabled').addNotificationListener(function(notification) {
- debug('Got ' + notification + ' notification on aria-disabled');
- gotSuccessfulNotification();
- });
- document.getElementById('aria-disabled').setAttribute('aria-disabled', 'true');
-
- accessibleElementById('aria-readonly').addNotificationListener(function(notification) {
- debug('Got ' + notification + ' notification on aria-readonly');
- gotSuccessfulNotification();
- });
- document.getElementById('aria-readonly').setAttribute('aria-readonly', 'true');
-
- accessibleElementById('aria-required').addNotificationListener(function(notification) {
- debug('Got ' + notification + ' notification on aria-required');
- gotSuccessfulNotification();
- });
- document.getElementById('aria-required').setAttribute('aria-required', 'true');
-
- debug('');
-}
-
-</script>
-
-<script src="../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698