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

Unified Diff: LayoutTests/platform/chromium/accessibility/text-change-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/text-change-notification.html
diff --git a/LayoutTests/platform/chromium/accessibility/text-change-notification.html b/LayoutTests/platform/chromium/accessibility/text-change-notification.html
deleted file mode 100644
index b1c8265ed83262d2ab339f9948ae7f485ffc3837..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/accessibility/text-change-notification.html
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<script src="../../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-
-<div id="container">
- <button id="aria-label" aria-label="Aria Label">Content</button>
- <button id="title" title="Title">Content</button>
- <button id="labelledby" aria-labelledby="label1">Content</button>
- <button id="labeled">Content</button>
-
- <label id="label1">Label1</label>
- <label id="label2">Label2</label>
-</div>
-
-<div id="console"></div>
-<script>
-description("This test ensures that a change to an element's accessible text, even if indirect, 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-label').removeNotificationListener();
- accessibleElementById('title').removeNotificationListener();
- accessibleElementById('labelledby').removeNotificationListener();
- accessibleElementById('labeled').removeNotificationListener();
-
- document.getElementById('container').hidden = true;
- finishJSTest();
- }
-
- accessibleElementById('aria-label').addNotificationListener(function(notification) {
- debug('Got ' + notification + ' notification on aria-label');
- gotSuccessfulNotification();
- });
- document.getElementById('aria-label').setAttribute('aria-label', 'New aria-label');
-
- accessibleElementById('title').addNotificationListener(function(notification) {
- debug('Got ' + notification + ' notification on title');
- gotSuccessfulNotification();
- });
- document.getElementById('title').title = 'New title';
-
- accessibleElementById('labelledby').addNotificationListener(function(notification) {
- debug('Got ' + notification + ' notification on labelledby');
- gotSuccessfulNotification();
- });
- document.getElementById('labelledby').setAttribute('aria-labelledby', 'label2');
-
- accessibleElementById('labeled').addNotificationListener(function(notification) {
- debug('Got ' + notification + ' notification on labeled');
- gotSuccessfulNotification();
- });
- document.getElementById('label1').setAttribute('for', 'labeled');
-
- debug('');
-}
-
-</script>
-
-<script src="../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698