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

Side by Side Diff: LayoutTests/accessibility/document-attributes.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <head>
7 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8 <body id="body">
9 <!-- This tests the exposure of a document's encoding and URI to assistive t echnologies -->
10 <div id="result"></div>
11 <script>
12 if (window.accessibilityController) {
13 var body = document.getElementById("body");
14 body.focus();
15 var webArea = accessibilityController.focusedElement;
16 var result = document.getElementById("result");
17
18 var documentEncoding = webArea.documentEncoding;
19 var documentURI = webArea.documentURI;
20
21 if (documentEncoding == "UTF-8" && documentURI == location.href) {
22 result.innerText = "Passed";
23 }
24 else {
25 result.innerText = "Failed:\nExpected: UTF-8 and " + location.hre f + ".\nActual: " + documentEncoding + " and " + documentURI + ".";
26 }
27 }
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698