From: caio.oliveira@openbossa.org Date: Tue, 22 May 2012 06:28:46 +0000 (+0000) Subject: Avoid using window.internals when internals is enough after r117771 X-Git-Tag: 070512121124~3691 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c18905286dfe834b83f8143fc8b795b4b5d4b9e;p=profile%2Fivi%2Fwebkit-efl.git Avoid using window.internals when internals is enough after r117771 https://bugs.webkit.org/show_bug.cgi?id=87059 Reviewed by Darin Adler. Revision r117771 introduced a style change in the layout tests that was not intended. This patch amends this by using "window.internals" only when checking for the internals object. Once we know internals is there, we use directly. This conforms to the style used for layoutTestController in the affected tests. * editing/deleting/delete-ligature-003.html: * editing/deleting/paragraph-in-preserveNewline.html: * editing/deleting/whitespace-pre-1.html: * editing/execCommand/script-tests/query-command-state.js: (runTests): * editing/execCommand/script-tests/query-text-alignment.js: (runRangeTests): * editing/execCommand/script-tests/toggle-compound-styles.js: * editing/selection/5195166-1.html: * editing/selection/5354455-1.html: * editing/selection/caret-mode-paragraph-keys-navigation.html: * editing/selection/collapse-selection-in-bidi.html: * editing/selection/context-menu-text-selection.html: * editing/selection/directionality-after-undo-replace.html: * editing/selection/extend-after-mouse-selection.html: * editing/selection/extend-selection-after-double-click.html: * editing/selection/move-by-word-visually-crash-test-1.html: * editing/selection/move-by-word-visually-crash-test-2.html: * editing/selection/move-by-word-visually-crash-test-3.html: * editing/selection/move-by-word-visually-crash-test-4.html: * editing/selection/move-by-word-visually-crash-test-5.html: * editing/selection/move-by-word-visually-crash-test-css-generated-content.html: * editing/selection/move-by-word-visually-crash-test-textarea.html: * editing/selection/move-by-word-visually-inline-block-positioned-element.html: * editing/selection/move-by-word-visually-mac.html: * editing/selection/move-by-word-visually-multi-line.html: * editing/selection/move-by-word-visually-multi-space.html: * editing/selection/move-by-word-visually-null-box.html: * editing/selection/move-by-word-visually-single-space-inline-element.html: * editing/selection/move-by-word-visually-single-space-one-element.html: * editing/selection/move-by-word-visually-textarea.html: * editing/selection/move-by-word-visually-wrong-left-right.html: * editing/selection/programmatic-selection-on-mac-is-directionless.html: * editing/selection/rtl-move-selection-right-left.html: * editing/selection/script-tests/click-in-margins-inside-editable-div.js: * editing/selection/script-tests/click-in-padding-with-multiple-line-boxes.js: * editing/selection/script-tests/shift-click.js: (runShiftClickTest): * editing/selection/selection-extend-should-not-move-across-caret-on-mac.html: * editing/style/iframe-onload-crash-mac.html: * editing/style/iframe-onload-crash-unix.html: * editing/style/iframe-onload-crash-win.html: * fast/events/backspace-navigates-back.html: * fast/forms/selection-direction.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117912 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index b4adaec..bdc788d 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,61 @@ +2012-05-21 Caio Marcelo de Oliveira Filho + + Avoid using window.internals when internals is enough after r117771 + https://bugs.webkit.org/show_bug.cgi?id=87059 + + Reviewed by Darin Adler. + + Revision r117771 introduced a style change in the layout tests that was not + intended. This patch amends this by using "window.internals" only when checking + for the internals object. Once we know internals is there, we use directly. + + This conforms to the style used for layoutTestController in the affected tests. + + * editing/deleting/delete-ligature-003.html: + * editing/deleting/paragraph-in-preserveNewline.html: + * editing/deleting/whitespace-pre-1.html: + * editing/execCommand/script-tests/query-command-state.js: + (runTests): + * editing/execCommand/script-tests/query-text-alignment.js: + (runRangeTests): + * editing/execCommand/script-tests/toggle-compound-styles.js: + * editing/selection/5195166-1.html: + * editing/selection/5354455-1.html: + * editing/selection/caret-mode-paragraph-keys-navigation.html: + * editing/selection/collapse-selection-in-bidi.html: + * editing/selection/context-menu-text-selection.html: + * editing/selection/directionality-after-undo-replace.html: + * editing/selection/extend-after-mouse-selection.html: + * editing/selection/extend-selection-after-double-click.html: + * editing/selection/move-by-word-visually-crash-test-1.html: + * editing/selection/move-by-word-visually-crash-test-2.html: + * editing/selection/move-by-word-visually-crash-test-3.html: + * editing/selection/move-by-word-visually-crash-test-4.html: + * editing/selection/move-by-word-visually-crash-test-5.html: + * editing/selection/move-by-word-visually-crash-test-css-generated-content.html: + * editing/selection/move-by-word-visually-crash-test-textarea.html: + * editing/selection/move-by-word-visually-inline-block-positioned-element.html: + * editing/selection/move-by-word-visually-mac.html: + * editing/selection/move-by-word-visually-multi-line.html: + * editing/selection/move-by-word-visually-multi-space.html: + * editing/selection/move-by-word-visually-null-box.html: + * editing/selection/move-by-word-visually-single-space-inline-element.html: + * editing/selection/move-by-word-visually-single-space-one-element.html: + * editing/selection/move-by-word-visually-textarea.html: + * editing/selection/move-by-word-visually-wrong-left-right.html: + * editing/selection/programmatic-selection-on-mac-is-directionless.html: + * editing/selection/rtl-move-selection-right-left.html: + * editing/selection/script-tests/click-in-margins-inside-editable-div.js: + * editing/selection/script-tests/click-in-padding-with-multiple-line-boxes.js: + * editing/selection/script-tests/shift-click.js: + (runShiftClickTest): + * editing/selection/selection-extend-should-not-move-across-caret-on-mac.html: + * editing/style/iframe-onload-crash-mac.html: + * editing/style/iframe-onload-crash-unix.html: + * editing/style/iframe-onload-crash-win.html: + * fast/events/backspace-navigates-back.html: + * fast/forms/selection-direction.html: + 2012-05-21 Levi Weintraub Unreviewed gardening. Updating more tests post r117815. diff --git a/LayoutTests/editing/deleting/delete-ligature-003.html b/LayoutTests/editing/deleting/delete-ligature-003.html index fc33885..9fcd16c 100644 --- a/LayoutTests/editing/deleting/delete-ligature-003.html +++ b/LayoutTests/editing/deleting/delete-ligature-003.html @@ -15,7 +15,7 @@ function runTestOn(platform) { var testarea = document.getElementById("test"); if (window.internals) - window.internals.settings.setEditingBehavior(platform); + internals.settings.setEditingBehavior(platform); testarea.focus(); moveSelectionForwardByCharacterCommand(); diff --git a/LayoutTests/editing/deleting/paragraph-in-preserveNewline.html b/LayoutTests/editing/deleting/paragraph-in-preserveNewline.html index 58bb43b..e277731 100644 --- a/LayoutTests/editing/deleting/paragraph-in-preserveNewline.html +++ b/LayoutTests/editing/deleting/paragraph-in-preserveNewline.html @@ -12,7 +12,7 @@ function runTestsOn(platform) { var e = document.getElementById("test"); if (window.internals) - window.internals.settings.setEditingBehavior(platform); + internals.settings.setEditingBehavior(platform); sel.setPosition(e, 0); sel.modify("extend", "forward", "character"); diff --git a/LayoutTests/editing/deleting/whitespace-pre-1.html b/LayoutTests/editing/deleting/whitespace-pre-1.html index d325287..2040fa6 100644 --- a/LayoutTests/editing/deleting/whitespace-pre-1.html +++ b/LayoutTests/editing/deleting/whitespace-pre-1.html @@ -11,7 +11,7 @@ function runTestsOn(platform) { var s = window.getSelection(); if (window.internals) - window.internals.settings.setEditingBehavior(platform); + internals.settings.setEditingBehavior(platform); s.setPosition(e, 0); s.modify("extend", "forward", "lineBoundary"); diff --git a/LayoutTests/editing/execCommand/script-tests/query-command-state.js b/LayoutTests/editing/execCommand/script-tests/query-command-state.js index 749d834..659b1f1 100644 --- a/LayoutTests/editing/execCommand/script-tests/query-command-state.js +++ b/LayoutTests/editing/execCommand/script-tests/query-command-state.js @@ -43,7 +43,7 @@ function selectFirstTwoWords(container) { function runTests(editingBehavior) { if (window.internals) - window.internals.settings.setEditingBehavior(editingBehavior); + internals.settings.setEditingBehavior(editingBehavior); debug('Tests for ' + editingBehavior) testQueryCommandState("bold", 'hello', selectAll, {'mac': false, 'win': false}[editingBehavior]); diff --git a/LayoutTests/editing/execCommand/script-tests/query-text-alignment.js b/LayoutTests/editing/execCommand/script-tests/query-text-alignment.js index 97dea0f..78b0109 100644 --- a/LayoutTests/editing/execCommand/script-tests/query-text-alignment.js +++ b/LayoutTests/editing/execCommand/script-tests/query-text-alignment.js @@ -83,7 +83,7 @@ queryTextAlignment(selectFirstPosition, '
hello
', 'right function runRangeTests(editingBehavior) { if (window.internals) - window.internals.settings.setEditingBehavior(editingBehavior); + internals.settings.setEditingBehavior(editingBehavior); debug('Tests for ' + editingBehavior); queryTextAlignment(selectMiddleOfHelloWorld, '

hello

world

', ''); diff --git a/LayoutTests/editing/execCommand/script-tests/toggle-compound-styles.js b/LayoutTests/editing/execCommand/script-tests/toggle-compound-styles.js index 93b40d9..955d7a9 100644 --- a/LayoutTests/editing/execCommand/script-tests/toggle-compound-styles.js +++ b/LayoutTests/editing/execCommand/script-tests/toggle-compound-styles.js @@ -23,7 +23,7 @@ for (var i = 0; i < platforms.length; i++) { debug('Platform: ' + platform); if (window.internals) - window.internals.settings.setEditingBehavior(platform); + internals.settings.setEditingBehavior(platform); if (platform == 'win' || platform == 'unix') platform = 'nonmac'; diff --git a/LayoutTests/editing/selection/5195166-1.html b/LayoutTests/editing/selection/5195166-1.html index 48fe59f..0d743fb 100644 --- a/LayoutTests/editing/selection/5195166-1.html +++ b/LayoutTests/editing/selection/5195166-1.html @@ -13,7 +13,7 @@ function log(str) function runTest(platform, expectedText) { - window.internals.settings.setEditingBehavior(platform); + internals.settings.setEditingBehavior(platform); var target = document.getElementById('select'); var startX = target.offsetLeft + target.offsetWidth; diff --git a/LayoutTests/editing/selection/5354455-1.html b/LayoutTests/editing/selection/5354455-1.html index 99cbb0e..1ab4d5b 100644 --- a/LayoutTests/editing/selection/5354455-1.html +++ b/LayoutTests/editing/selection/5354455-1.html @@ -10,7 +10,7 @@ diff --git a/LayoutTests/editing/selection/move-by-word-visually-crash-test-2.html b/LayoutTests/editing/selection/move-by-word-visually-crash-test-2.html index 67ddd8e..23056c7 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-crash-test-2.html +++ b/LayoutTests/editing/selection/move-by-word-visually-crash-test-2.html @@ -12,7 +12,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); }
abc def diff --git a/LayoutTests/editing/selection/move-by-word-visually-crash-test-3.html b/LayoutTests/editing/selection/move-by-word-visually-crash-test-3.html index bae03dc..e77889c 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-crash-test-3.html +++ b/LayoutTests/editing/selection/move-by-word-visually-crash-test-3.html @@ -12,7 +12,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-crash-test-4.html b/LayoutTests/editing/selection/move-by-word-visually-crash-test-4.html index b069569..ac5f482 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-crash-test-4.html +++ b/LayoutTests/editing/selection/move-by-word-visually-crash-test-4.html @@ -12,7 +12,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } >
diff --git a/LayoutTests/editing/selection/move-by-word-visually-crash-test-5.html b/LayoutTests/editing/selection/move-by-word-visually-crash-test-5.html index 51ce845..c9ce2ff 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-crash-test-5.html +++ b/LayoutTests/editing/selection/move-by-word-visually-crash-test-5.html @@ -11,7 +11,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-crash-test-css-generated-content.html b/LayoutTests/editing/selection/move-by-word-visually-crash-test-css-generated-content.html index ca54b87..4239ca0 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-crash-test-css-generated-content.html +++ b/LayoutTests/editing/selection/move-by-word-visually-crash-test-css-generated-content.html @@ -19,7 +19,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); }
diff --git a/LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea.html b/LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea.html index 5e3a424..8635e85 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea.html +++ b/LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea.html @@ -18,7 +18,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-inline-block-positioned-element.html b/LayoutTests/editing/selection/move-by-word-visually-inline-block-positioned-element.html index cf19b53..07d8d6e 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-inline-block-positioned-element.html +++ b/LayoutTests/editing/selection/move-by-word-visually-inline-block-positioned-element.html @@ -12,7 +12,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-mac.html b/LayoutTests/editing/selection/move-by-word-visually-mac.html index 59ce68e..24bb2a2 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-mac.html +++ b/LayoutTests/editing/selection/move-by-word-visually-mac.html @@ -19,7 +19,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('mac'); + internals.settings.setEditingBehavior('mac'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-multi-line.html b/LayoutTests/editing/selection/move-by-word-visually-multi-line.html index 7191dcc..d1be03a 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-multi-line.html +++ b/LayoutTests/editing/selection/move-by-word-visually-multi-line.html @@ -19,7 +19,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-multi-space.html b/LayoutTests/editing/selection/move-by-word-visually-multi-space.html index 20668ba..95a9538 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-multi-space.html +++ b/LayoutTests/editing/selection/move-by-word-visually-multi-space.html @@ -19,7 +19,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-null-box.html b/LayoutTests/editing/selection/move-by-word-visually-null-box.html index b83caa9..30bbfbf 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-null-box.html +++ b/LayoutTests/editing/selection/move-by-word-visually-null-box.html @@ -18,7 +18,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); }
diff --git a/LayoutTests/editing/selection/move-by-word-visually-single-space-inline-element.html b/LayoutTests/editing/selection/move-by-word-visually-single-space-inline-element.html index 250e0d6..d52f588 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-single-space-inline-element.html +++ b/LayoutTests/editing/selection/move-by-word-visually-single-space-inline-element.html @@ -19,7 +19,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-single-space-one-element.html b/LayoutTests/editing/selection/move-by-word-visually-single-space-one-element.html index 350d908..563bede 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-single-space-one-element.html +++ b/LayoutTests/editing/selection/move-by-word-visually-single-space-one-element.html @@ -19,7 +19,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-textarea.html b/LayoutTests/editing/selection/move-by-word-visually-textarea.html index 78166c6..d6b42e2 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-textarea.html +++ b/LayoutTests/editing/selection/move-by-word-visually-textarea.html @@ -36,7 +36,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } diff --git a/LayoutTests/editing/selection/move-by-word-visually-wrong-left-right.html b/LayoutTests/editing/selection/move-by-word-visually-wrong-left-right.html index fda7cea..cb17552 100644 --- a/LayoutTests/editing/selection/move-by-word-visually-wrong-left-right.html +++ b/LayoutTests/editing/selection/move-by-word-visually-wrong-left-right.html @@ -22,7 +22,7 @@ onload = function() { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior('win'); + internals.settings.setEditingBehavior('win'); } wrong result because VisiblePosition.left()/right() returns wrong result diff --git a/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html b/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html index adb877a..c5a5a7c 100644 --- a/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html +++ b/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html @@ -122,7 +122,7 @@ function runTestsOn(platform, node) { function runTestsFor(platform) { debug(platform + ':'); - window.internals.settings.setEditingBehavior(platform); + internals.settings.setEditingBehavior(platform); var listOfTestNodes = document.getElementById('test').childNodes; for (var i = 0; i < listOfTestNodes.length; i++) { diff --git a/LayoutTests/editing/selection/rtl-move-selection-right-left.html b/LayoutTests/editing/selection/rtl-move-selection-right-left.html index 2889e9c..0e6c670 100644 --- a/LayoutTests/editing/selection/rtl-move-selection-right-left.html +++ b/LayoutTests/editing/selection/rtl-move-selection-right-left.html @@ -70,13 +70,13 @@ function runTests() testSelectionChange(setSelection, "move", "left", 3, 0, "Move selection left"); if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior("mac"); + internals.settings.setEditingBehavior("mac"); testSelectionChange(dragSelection, "extend", "right", 0, 0, "Extend dragged selection right (Mac)"); testSelectionChange(dragSelection, "extend", "left", 0, 0, "Extend dragged selection left (Mac)"); - window.internals.settings.setEditingBehavior("win"); + internals.settings.setEditingBehavior("win"); testSelectionChange(dragSelection, "extend", "right", 0, 0, "Extend dragged selection right (Win)"); testSelectionChange(dragSelection, "extend", "left", 1, 0, "Extend dragged selection left (Win)"); - window.internals.settings.setEditingBehavior("unix"); + internals.settings.setEditingBehavior("unix"); testSelectionChange(dragSelection, "extend", "right", 0, 0, "Extend dragged selection right (Unix)"); testSelectionChange(dragSelection, "extend", "left", 1, 0, "Extend dragged selection left (Unix)"); } diff --git a/LayoutTests/editing/selection/script-tests/click-in-margins-inside-editable-div.js b/LayoutTests/editing/selection/script-tests/click-in-margins-inside-editable-div.js index 3dc9ffa..e9beabb 100644 --- a/LayoutTests/editing/selection/script-tests/click-in-margins-inside-editable-div.js +++ b/LayoutTests/editing/selection/script-tests/click-in-margins-inside-editable-div.js @@ -69,7 +69,7 @@ function runInteractiveTests() function editingTest(editingBehavior) { if (window.internals) - window.internals.settings.setEditingBehavior(editingBehavior); + internals.settings.setEditingBehavior(editingBehavior); var expectMacStyleSelection = editingBehavior == "mac"; diff --git a/LayoutTests/editing/selection/script-tests/click-in-padding-with-multiple-line-boxes.js b/LayoutTests/editing/selection/script-tests/click-in-padding-with-multiple-line-boxes.js index 3699a24..4a8cf38 100644 --- a/LayoutTests/editing/selection/script-tests/click-in-padding-with-multiple-line-boxes.js +++ b/LayoutTests/editing/selection/script-tests/click-in-padding-with-multiple-line-boxes.js @@ -50,7 +50,7 @@ function runInteractiveTests() function editingTest(editingBehavior) { if (window.internals) - window.internals.settings.setEditingBehavior(editingBehavior); + internals.settings.setEditingBehavior(editingBehavior); var expectMacStyleSelection = editingBehavior == "mac"; diff --git a/LayoutTests/editing/selection/script-tests/shift-click.js b/LayoutTests/editing/selection/script-tests/shift-click.js index b482d12..af1ea17 100644 --- a/LayoutTests/editing/selection/script-tests/shift-click.js +++ b/LayoutTests/editing/selection/script-tests/shift-click.js @@ -44,7 +44,7 @@ function assertSelectionOrder(direction) function runShiftClickTest(editingBehavior) { - window.internals.settings.setEditingBehavior(editingBehavior); + internals.settings.setEditingBehavior(editingBehavior); // Double-click select to get around eventSender bug where it won't select // text just using single-click. diff --git a/LayoutTests/editing/selection/selection-extend-should-not-move-across-caret-on-mac.html b/LayoutTests/editing/selection/selection-extend-should-not-move-across-caret-on-mac.html index 5f1dbf9..21598c1 100644 --- a/LayoutTests/editing/selection/selection-extend-should-not-move-across-caret-on-mac.html +++ b/LayoutTests/editing/selection/selection-extend-should-not-move-across-caret-on-mac.html @@ -17,7 +17,7 @@ of the word (which is windows/unix behavior). function editingTest(behavior) { if (window.layoutTestController && window.internals) { layoutTestController.dumpAsText(); - window.internals.settings.setEditingBehavior(behavior); + internals.settings.setEditingBehavior(behavior); } function getSetCaretFunction(node, container, offset) { diff --git a/LayoutTests/editing/style/iframe-onload-crash-mac.html b/LayoutTests/editing/style/iframe-onload-crash-mac.html index 6ebe259..c93a6cc 100644 --- a/LayoutTests/editing/style/iframe-onload-crash-mac.html +++ b/LayoutTests/editing/style/iframe-onload-crash-mac.html @@ -1,7 +1,7 @@