summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/text-iterator
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/editing/text-iterator')
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/backward-textiterator-first-letter-crash.html10
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/find-after-mutation.html4
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled-expected.txt24
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled.html6
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/findString.html4
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-rtl-crash.html4
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-word-boundary.html4
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/rtl-first-letter-text-iterator-crash.html8
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/rtl-selection-crash.html4
-rw-r--r--third_party/WebKit/LayoutTests/editing/text-iterator/thai-cursor-movement.html4
10 files changed, 36 insertions, 36 deletions
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/backward-textiterator-first-letter-crash.html b/third_party/WebKit/LayoutTests/editing/text-iterator/backward-textiterator-first-letter-crash.html
index eef2489..0d9a3c1 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/backward-textiterator-first-letter-crash.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/backward-textiterator-first-letter-crash.html
@@ -2,14 +2,14 @@
div:first-letter { margin-top: 0em; }
</style>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function done() {
document.body.innerHTML = 'PASS if WebKit did not hit assertions';
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
<body onload="setTimeout(done, 100);"><div>AB<select autofocus contenteditable>
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/find-after-mutation.html b/third_party/WebKit/LayoutTests/editing/text-iterator/find-after-mutation.html
index 5171510..bbfaa57 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/find-after-mutation.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/find-after-mutation.html
@@ -4,8 +4,8 @@
<script>
function runTest() {
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
+ if (window.testRunner)
+ testRunner.dumpAsText();
document.body.offsetHeight;
document.body.innerHTML = " ";
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled-expected.txt b/third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled-expected.txt
index d6b365f..6bde415 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled-expected.txt
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled-expected.txt
@@ -1,38 +1,38 @@
Searching for 'e' in 'Some sample text that can be searched' with selection enabled:
-PASS layoutTestController.findString('e', []) is true
+PASS testRunner.findString('e', []) is true
Searching for 'o' in 'Some sample text that can be searched' with selection enabled:
-PASS layoutTestController.findString('o', []) is true
+PASS testRunner.findString('o', []) is true
Searching for 'y' in 'Some sample text that can be searched' with selection enabled:
-PASS layoutTestController.findString('y', []) is false
+PASS testRunner.findString('y', []) is false
Searching for 't t' in 'Some sample text that can be searched' with selection enabled:
-PASS layoutTestController.findString('t t', []) is true
+PASS testRunner.findString('t t', []) is true
Searching for 'mount' in 'insurmountable mountain' with selection enabled:
-PASS layoutTestController.findString('mount', []) is true
+PASS testRunner.findString('mount', []) is true
Searching for 'Wally' in 'insurmountable mountain' with selection enabled:
-PASS layoutTestController.findString('Wally', []) is false
+PASS testRunner.findString('Wally', []) is false
Searching for 'e' in 'Some sample text that can be searched' with selection disabled:
-PASS layoutTestController.findString('e', []) is true
+PASS testRunner.findString('e', []) is true
Searching for 'o' in 'Some sample text that can be searched' with selection disabled:
-PASS layoutTestController.findString('o', []) is true
+PASS testRunner.findString('o', []) is true
Searching for 'y' in 'Some sample text that can be searched' with selection disabled:
-PASS layoutTestController.findString('y', []) is false
+PASS testRunner.findString('y', []) is false
Searching for 't t' in 'Some sample text that can be searched' with selection disabled:
-PASS layoutTestController.findString('t t', []) is true
+PASS testRunner.findString('t t', []) is true
Searching for 'mount' in 'insurmountable mountain' with selection disabled:
-PASS layoutTestController.findString('mount', []) is true
+PASS testRunner.findString('mount', []) is true
Searching for 'Wally' in 'insurmountable mountain' with selection disabled:
-PASS layoutTestController.findString('Wally', []) is false
+PASS testRunner.findString('Wally', []) is false
PASS successfullyParsed is true
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled.html b/third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled.html
index 05d3a91..aa07d9c 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/findString-selection-disabled.html
@@ -29,14 +29,14 @@ function testFindString(text, target, disableSelection, expected)
container.className = disableSelection ? "selectionDisabled" : "selectionEnabled";
- shouldBe("layoutTestController.findString('" + target + "', [])", expected);
+ shouldBe("testRunner.findString('" + target + "', [])", expected);
container.innerText = "";
log("");
}
-if (!window.layoutTestController)
- testFailed('This test requires the layoutTestController object');
+if (!window.testRunner)
+ testFailed('This test requires the testRunner object');
else {
for (i = 0; i < 2; i++) {
var disableSelection = (i == 1);
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/findString.html b/third_party/WebKit/LayoutTests/editing/text-iterator/findString.html
index c322745..dee87dc 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/findString.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/findString.html
@@ -19,7 +19,7 @@
var expectedRange;
while (expectedRange = expectedRanges.shift()) {
- var found = layoutTestController.findString(target, options);
+ var found = testRunner.findString(target, options);
if (found) {
var actualRange = [selection.baseOffset, selection.extentOffset];
if (expectedRange[0] !== actualRange[0] || expectedRange[1] !== actualRange[1])
@@ -35,7 +35,7 @@
log("");
}
- layoutTestController.dumpAsText();
+ testRunner.dumpAsText();
testFindString("Lorem ipsum dolor sit amet", "o", [], [[1, 2], [13, 14], [15, 16], []]);
testFindString("Lorem ipsum dolor sit amet", "o", ["WrapAround"], [[1, 2], [13, 14], [15, 16], [1, 2]]);
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-rtl-crash.html b/third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-rtl-crash.html
index 8abb966..8897d9d 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-rtl-crash.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-rtl-crash.html
@@ -9,8 +9,8 @@ function run() {
document.execCommand('findString', false, '!ABC');
document.body.innerHTML = '<br>This test ensures WebKit does not crash when first-letter rule is applied to LTR letters that ' +
' are not visually contiguous to each other.<br>PASS';
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
+ if (window.testRunner)
+ testRunner.dumpAsText();
}
</script>
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-word-boundary.html b/third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-word-boundary.html
index 60d69d9..ef408bf 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-word-boundary.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-word-boundary.html
@@ -16,8 +16,8 @@ This test also demonstrates a bug that word position is incorrectly reported.</p
<pre id="console"></pre>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
function runTest(actor, expectedOffset) {
window.getSelection().setPosition(test.firstChild, 4);
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/rtl-first-letter-text-iterator-crash.html b/third_party/WebKit/LayoutTests/editing/text-iterator/rtl-first-letter-text-iterator-crash.html
index 73b6c8c..5248288 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/rtl-first-letter-text-iterator-crash.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/rtl-first-letter-text-iterator-crash.html
@@ -6,9 +6,9 @@
height: 1;
</style>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function crash(){
@@ -23,7 +23,7 @@ function crash(){
document.body.offsetTop;
setTimeout(function () {
document.body.innerHTML = "PASS. WebKit didn't crash.";
- layoutTestController.notifyDone();
+ testRunner.notifyDone();
}, 0);
}
window.scrollTop;
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/rtl-selection-crash.html b/third_party/WebKit/LayoutTests/editing/text-iterator/rtl-selection-crash.html
index de251e3..6f961f9 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/rtl-selection-crash.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/rtl-selection-crash.html
@@ -1,8 +1,8 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<body>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
var div = document.createElement('div');
div.contentEditable = 'true';
diff --git a/third_party/WebKit/LayoutTests/editing/text-iterator/thai-cursor-movement.html b/third_party/WebKit/LayoutTests/editing/text-iterator/thai-cursor-movement.html
index aaffa65..ddcd7d5 100644
--- a/third_party/WebKit/LayoutTests/editing/text-iterator/thai-cursor-movement.html
+++ b/third_party/WebKit/LayoutTests/editing/text-iterator/thai-cursor-movement.html
@@ -13,8 +13,8 @@ function log(str)
function editingTest()
{
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
+ if (window.testRunner)
+ testRunner.dumpAsText();
var editableArea = document.getElementById("test");
editableArea.focus();