Avoid using window.internals when internals is enough after r117771
authorcaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 May 2012 06:28:46 +0000 (06:28 +0000)
committercaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 May 2012 06:28:46 +0000 (06:28 +0000)
commitbf55cd45a87da24c3e36e34bdc8bab3dba4b0ead
tree805c407f0651f9a6d5bfe9e8864fa485bbf35b57
parent2dbe2f5fac562084b8fa1392cf4307a920da2cb6
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: https://svn.webkit.org/repository/webkit/trunk@117912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
42 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-ligature-003.html
LayoutTests/editing/deleting/paragraph-in-preserveNewline.html
LayoutTests/editing/deleting/whitespace-pre-1.html
LayoutTests/editing/execCommand/script-tests/query-command-state.js
LayoutTests/editing/execCommand/script-tests/query-text-alignment.js
LayoutTests/editing/execCommand/script-tests/toggle-compound-styles.js
LayoutTests/editing/selection/5195166-1.html
LayoutTests/editing/selection/5354455-1.html
LayoutTests/editing/selection/caret-mode-paragraph-keys-navigation.html
LayoutTests/editing/selection/collapse-selection-in-bidi.html
LayoutTests/editing/selection/context-menu-text-selection.html
LayoutTests/editing/selection/directionality-after-undo-replace.html
LayoutTests/editing/selection/extend-after-mouse-selection.html
LayoutTests/editing/selection/extend-selection-after-double-click.html
LayoutTests/editing/selection/move-by-word-visually-crash-test-1.html
LayoutTests/editing/selection/move-by-word-visually-crash-test-2.html
LayoutTests/editing/selection/move-by-word-visually-crash-test-3.html
LayoutTests/editing/selection/move-by-word-visually-crash-test-4.html
LayoutTests/editing/selection/move-by-word-visually-crash-test-5.html
LayoutTests/editing/selection/move-by-word-visually-crash-test-css-generated-content.html
LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea.html
LayoutTests/editing/selection/move-by-word-visually-inline-block-positioned-element.html
LayoutTests/editing/selection/move-by-word-visually-mac.html
LayoutTests/editing/selection/move-by-word-visually-multi-line.html
LayoutTests/editing/selection/move-by-word-visually-multi-space.html
LayoutTests/editing/selection/move-by-word-visually-null-box.html
LayoutTests/editing/selection/move-by-word-visually-single-space-inline-element.html
LayoutTests/editing/selection/move-by-word-visually-single-space-one-element.html
LayoutTests/editing/selection/move-by-word-visually-textarea.html
LayoutTests/editing/selection/move-by-word-visually-wrong-left-right.html
LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html
LayoutTests/editing/selection/rtl-move-selection-right-left.html
LayoutTests/editing/selection/script-tests/click-in-margins-inside-editable-div.js
LayoutTests/editing/selection/script-tests/click-in-padding-with-multiple-line-boxes.js
LayoutTests/editing/selection/script-tests/shift-click.js
LayoutTests/editing/selection/selection-extend-should-not-move-across-caret-on-mac.html
LayoutTests/editing/style/iframe-onload-crash-mac.html
LayoutTests/editing/style/iframe-onload-crash-unix.html
LayoutTests/editing/style/iframe-onload-crash-win.html
LayoutTests/fast/events/backspace-navigates-back.html
LayoutTests/fast/forms/selection-direction.html