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

Unified Diff: LayoutTests/fast/speech/bubble-position.html

Issue 264973003: Remove layout tests for the legacy x-webkit-speech API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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/fast/speech/bubble-position.html
diff --git a/LayoutTests/fast/speech/bubble-position.html b/LayoutTests/fast/speech/bubble-position.html
deleted file mode 100644
index 40c7f10382717c411b2554fbf15e968c9d9d4d61..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/speech/bubble-position.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script type="text/javascript">
-description('Tests for speech button click with &lt;input type="text" speech>.');
-
-function onSpeechChange() {
- // Since we requested dumpRect, the rect comes back as the speech result.
- var rect = input.value.split(',');
- var x = parseInt(rect[0]);
- var y = parseInt(rect[1]);
-
- // Check that the rect is inside the iframe.
- if (x >= iframe.offsetLeft && x <= iframe.offsetLeft + iframe.offsetWidth
- && y >= iframe.offsetTop && y <= iframe.offsetTop + iframe.offsetHeight)
- testPassed("rect is inside the iframe");
- else
- testFailed("FAIL: rect was outside the iframe. Actual rect.x: " + x + ", rect.y: " + y);
-
- finishJSTest();
-}
-
-function run() {
- window.iframe = document.getElementById('iframe');
- window.input = iframe.contentDocument.createElement('input');
- input.setAttribute('x-webkit-speech', '');
- input.onwebkitspeechchange = onSpeechChange;
- iframe.contentDocument.getElementsByTagName('body')[0].appendChild(input);
-
- if (window.testRunner && window.eventSender) {
- testRunner.setMockSpeechInputDumpRect(true);
-
- debug('Clicking the speech button.');
- var x = input.offsetLeft + input.offsetWidth - 4;
- var y = input.offsetTop + input.offsetHeight / 2;
- x += iframe.offsetLeft;
- y += iframe.offsetTop;
-
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
- }
-}
-
-window.onload = run;
-window.jsTestIsAsync = true;
-</script>
-<iframe id="iframe">
-</body>
-</html>
-
« no previous file with comments | « LayoutTests/fast/forms/textfield-clone-expected.txt ('k') | LayoutTests/fast/speech/bubble-position-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698