1. 07 Sep, 2013 1 commit
    • mark.lam@apple.com's avatar
      Change LayoutTests' a* and b* files to use pre and post js files in LayoutTests/resources. · a931ab23
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120985.
      
      Rubber stamped by Filip Pizlo.
      
      * accessibility/accessibility-node-memory-management.html:
      * accessibility/accessibility-node-reparent.html:
      * accessibility/accessibility-object-detached.html:
      * accessibility/adjacent-continuations-cause-assertion-failure.html:
      * accessibility/anonymous-render-block-in-continuation-causes-crash.html:
      * accessibility/aria-checkbox-checked.html:
      * accessibility/aria-checkbox-sends-notification.html:
      * accessibility/aria-checkbox-text.html:
      * accessibility/aria-combobox.html:
      * accessibility/aria-controls-with-tabs.html:
      * accessibility/aria-disabled.html:
      * accessibility/aria-fallback-roles.html:
      * accessibility/aria-help.html:
      * accessibility/aria-hidden-hides-all-elements.html:
      * accessibility/aria-hidden-update.html:
      * accessibility/aria-hidden-updates-alldescendants.html:
      * accessibility/aria-hidden-with-elements.html:
      * accessibility/aria-hidden.html:
      * accessibility/aria-invalid.html:
      * accessibility/aria-label.html:
      * accessibility/aria-labelledby-overrides-label.html:
      * accessibility/aria-list-and-listitem.html:
      * accessibility/aria-menubar-menuitems.html:
      * accessibility/aria-option-role.html:
      * accessibility/aria-presentational-role.html:
      * accessibility/aria-readonly.html:
      * accessibility/aria-required.html:
      * accessibility/aria-scrollbar-role.html:
      * accessibility/aria-sort.html:
      * accessibility/aria-tab-role-on-buttons.html:
      * accessibility/aria-tab-roles.html:
      * accessibility/aria-text-role.html:
      * accessibility/aria-toggle-button-with-title.html:
      * accessibility/aria-used-on-image-maps.html:
      * accessibility/button-title-uses-inner-img-alt.html:
      * accessibility/canvas-accessibilitynodeobject.html:
      * accessibility/canvas-description-and-role.html:
      * accessibility/canvas-fallback-content-2.html:
      * accessibility/canvas-fallback-content.html:
      * accessibility/color-well.html:
      * accessibility/container-node-delete-causes-crash.html:
      * accessibility/content-changed-notification-causes-crash.html:
      * accessibility/contenteditable-hidden-div.html:
      * accessibility/contenteditable-table-check-causes-crash.html:
      * accessibility/corresponding-control-deleted-crash.html:
      * accessibility/crash-adopt-node-from-new-document.html:
      * accessibility/crash-determining-aria-role-when-label-present.html:
      * accessibility/crash-with-noelement-selectbox.html:
      * accessibility/crashing-a-tag-in-map.html:
      * accessibility/deleting-iframe-destroys-axcache.html:
      * accessibility/disabled-controls-not-focusable.html:
      * accessibility/div-within-anchors-causes-crash.html:
      * accessibility/duplicate-axrenderobject-crash.html:
      * accessibility/duplicate-child-nodes.html:
      * accessibility/element-haspopup.html:
      * accessibility/ellipsis-text.html:
      * accessibility/empty-image-with-title.html:
      * accessibility/file-upload-button-with-axpress.html:
      * accessibility/first-letter-text-transform-causes-crash.html:
      * accessibility/focusable-div.html:
      * accessibility/global-aria-attributes-invalidate-presentational.html:
      * accessibility/hang-in-isignored.html:
      * accessibility/heading-level.html:
      * accessibility/heading-title-includes-links.html:
      * accessibility/hidden-legend.html:
      * accessibility/html-html-element-is-ignored.html:
      * accessibility/html5-required-attribute.html:
      * accessibility/iframe-bastardization.html:
      * accessibility/image-map-title-causes-crash.html:
      * accessibility/image-map-update-parent-crash.html:
      * accessibility/image-map1.html:
      * accessibility/img-alt-tag-only-whitespace.html:
      * accessibility/img-aria-button-alt-tag.html:
      * accessibility/img-fallsback-to-title.html:
      * accessibility/inline-continuations.html:
      * accessibility/input-file-causes-crash.html:
      * accessibility/input-image-alt.html:
      * accessibility/insert-selected-option-into-select-causes-crash.html:
      * accessibility/label-element-press.html:
      * accessibility/label-for-control-hittest.html:
      * accessibility/legend.html:
      * accessibility/link-inside-button-accessible-text.html:
      * accessibility/listbox-enabled-states.html:
      * accessibility/loading-iframe-sends-notification.html:
      * accessibility/loading-iframe-updates-axtree.html:
      * accessibility/media-controls.html:
      * accessibility/media-element.html:
      * accessibility/menu-item-crash.html:
      * accessibility/menu-list-sends-change-notification.html:
      * accessibility/meter-element.html:
      * accessibility/multiselect-list-reports-active-option.html:
      * accessibility/non-native-image-crash.html:
      * accessibility/noscript-ignored.html:
      * accessibility/notification-listeners.html:
      * accessibility/placeholder.html:
      * accessibility/platform-name.html:
      * accessibility/poorly-formed-aria-table.html:
      * accessibility/popup-button-title.html:
      * accessibility/presentational-elements-with-focus.html:
      * accessibility/press-works-on-control-types.html:
      * accessibility/radio-button-title-label.html:
      * accessibility/removed-anonymous-block-child-causes-crash.html:
      * accessibility/removed-continuation-element-causes-crash.html:
      * accessibility/render-counter-text.html:
      * accessibility/selection-states.html:
      * accessibility/spinbutton-value.html:
      * accessibility/svg-bounds.html:
      * accessibility/svg-group-element-with-title.html:
      * accessibility/svg-image.html:
      * accessibility/svg-remote-element.html:
      * accessibility/table-cell-for-column-and-row-crash.html:
      * accessibility/table-destroyed-crash.html:
      * accessibility/table-remove-cell-crash.html:
      * accessibility/table-with-empty-thead-causes-crash.html:
      * accessibility/table-with-hidden-head-section.html:
      * accessibility/table-with-mismatch-column-count-in-initial-section.html:
      * accessibility/text-role-with-aria-hidden-inside.html:
      * accessibility/textarea-insertion-point-line-number.html:
      * accessibility/textbox-role-reports-selection.html:
      * accessibility/title-ui-element-correctness.html:
      * accessibility/transformed-bounds.html:
      * accessibility/updating-attribute-in-table-causes-crash.html:
      * animations/animation-css-rule-types.html:
      * animations/animation-events-create.html:
      * animations/computed-style.html:
      * animations/keyframes-rule.html:
      * animations/script-tests/TEMPLATE.html:
      * batterystatus/add-listener-from-callback.html:
      * batterystatus/basic-all-types-of-events.html:
      * batterystatus/basic-operation.html:
      * batterystatus/event-after-navigation.html:
      * batterystatus/multiple-frames.html:
      * batterystatus/updates.html:
      * batterystatus/window-property.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a931ab23
  2. 16 Mar, 2012 1 commit
    • commit-queue@webkit.org's avatar
      .: Support for Battery Status API. · 0de163f6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=62698
      
      Enable BATTERY_STATUS for WebKit-Efl.
      http://www.w3.org/TR/battery-status/
      
      Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-03-16
      Reviewed by Adam Barth.
      
      * Source/cmake/OptionsEfl.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/WebCore: Support for Battery Status API
      https://bugs.webkit.org/show_bug.cgi?id=62698
      
      Battery Status API is implemented under the Navigator class.
      Battery Status API has four types of events, and all events are operated based on a callback mechanism.
       : onchargingchange, onchargingtimechange, ondischargingtimechange, onlevelchange.
      The battery status can be accessed using BatteryManager(navigator.webkitBattery), and battery status is controlled by BatteryController which manages instances of BatteryManager.
      When battery status event is raised, BatteryController calls all registered BatteryManager's event dispatcher.
      http://www.w3.org/TR/battery-status/
      
      Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-03-16
      Reviewed by Adam Barth.
      
      Tests: batterystatus/add-listener-from-callback.html
             batterystatus/basic-all-types-of-events.html
             batterystatus/basic-operation.html
             batterystatus/event-after-navigation.html
             batterystatus/multiple-frames.html
             batterystatus/updates.html
             batterystatus/window-property.html
      
      * CMakeLists.txt:
      * Modules/battery/BatteryClient.h: Added.
      (WebCore):
      (BatteryClient):
      (WebCore::BatteryClient::~BatteryClient):
      * Modules/battery/BatteryController.cpp: Added.
      (WebCore):
      (WebCore::BatteryController::BatteryController):
      (WebCore::BatteryController::~BatteryController):
      (WebCore::BatteryController::create):
      (WebCore::BatteryController::addListener):
      (WebCore::BatteryController::removeListener):
      (WebCore::BatteryController::didChangeBatteryStatus):
      (WebCore::BatteryController::supplementName):
      (WebCore::BatteryController::isActive):
      (WebCore::provideBatteryTo):
      * Modules/battery/BatteryController.h: Added.
      (WebCore):
      (BatteryController):
      (WebCore::BatteryController::client):
      (WebCore::BatteryController::from):
      * Modules/battery/BatteryManager.cpp: Added.
      (WebCore):
      (WebCore::BatteryManager::create):
      (WebCore::BatteryManager::~BatteryManager):
      (WebCore::BatteryManager::BatteryManager):
      (WebCore::BatteryManager::charging):
      (WebCore::BatteryManager::chargingTime):
      (WebCore::BatteryManager::dischargingTime):
      (WebCore::BatteryManager::level):
      (WebCore::BatteryManager::didChangeBatteryStatus):
      (WebCore::BatteryManager::suspend):
      (WebCore::BatteryManager::resume):
      (WebCore::BatteryManager::stop):
      * Modules/battery/BatteryManager.h: Added.
      (WebCore):
      (BatteryManager):
      (WebCore::BatteryManager::interfaceName):
      (WebCore::BatteryManager::scriptExecutionContext):
      (WebCore::BatteryManager::batteryControllerDestroyed):
      (WebCore::BatteryManager::canSuspend):
      (WebCore::BatteryManager::eventTargetData):
      (WebCore::BatteryManager::ensureEventTargetData):
      (WebCore::BatteryManager::refEventTarget):
      (WebCore::BatteryManager::derefEventTarget):
      * Modules/battery/BatteryManager.idl: Added.
      * Modules/battery/BatteryStatus.cpp: Added.
      (WebCore):
      (WebCore::BatteryStatus::create):
      (WebCore::BatteryStatus::BatteryStatus):
      * Modules/battery/BatteryStatus.h: Added.
      (WebCore):
      (BatteryStatus):
      (WebCore::BatteryStatus::charging):
      (WebCore::BatteryStatus::chargingTime):
      (WebCore::BatteryStatus::dischargingTime):
      (WebCore::BatteryStatus::level):
      * Modules/battery/NavigatorBattery.cpp: Added.
      (WebCore):
      (WebCore::NavigatorBattery::NavigatorBattery):
      (WebCore::NavigatorBattery::~NavigatorBattery):
      (WebCore::NavigatorBattery::webkitBattery):
      (WebCore::NavigatorBattery::from):
      (WebCore::NavigatorBattery::batteryManager):
      * Modules/battery/NavigatorBattery.h: Added.
      (WebCore):
      (NavigatorBattery):
      * Modules/battery/NavigatorBattery.idl: Added.
      * dom/EventNames.h:
      (WebCore):
      * dom/EventTargetFactory.in:
      * testing/Internals.cpp:
      (WebCore::Internals::setBatteryStatus):
      (WebCore):
      * testing/Internals.h:
      (Internals):
      * testing/Internals.idl:
      
      Source/WebKit: Support for Battery Status API
      https://bugs.webkit.org/show_bug.cgi?id=62698
      
      Add include directory and file.
      http://www.w3.org/TR/battery-status/
      
      Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-03-16
      Reviewed by Adam Barth.
      
      * PlatformEfl.cmake:
      
      Source/WebKit/efl: Support for Battery Status API
      https://bugs.webkit.org/show_bug.cgi?id=62698
      
      Add BatteryClientEfl class implementation for the layout tests now.
      BatteryClientEfl class is not fully implemented in this patch.
      (It will be completed by other patch as necessary in the Efl port.)
      http://www.w3.org/TR/battery-status/
      
      Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-03-16
      Reviewed by Adam Barth.
      
      * WebCoreSupport/BatteryClientEfl.cpp: Added.
      (WebCore):
      (WebCore::BatteryClientEfl::BatteryClientEfl):
      (WebCore::BatteryClientEfl::setController):
      (WebCore::BatteryClientEfl::startUpdating):
      (WebCore::BatteryClientEfl::stopUpdating):
      (WebCore::BatteryClientEfl::batteryControllerDestroyed):
      (WebCore::BatteryClientEfl::setBatteryStatus):
      * WebCoreSupport/BatteryClientEfl.h: Added.
      (WebCore):
      (BatteryClientEfl):
      (WebCore::BatteryClientEfl::~BatteryClientEfl):
      * ewk/ewk_view.cpp:
      (_Ewk_View_Private_Data):
      (_ewk_view_priv_new):
      
      Tools: Support for Battery Status API
      https://bugs.webkit.org/show_bug.cgi?id=62698
      
      Add include directory and file.
      http://www.w3.org/TR/battery-status/
      
      Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-03-16
      Reviewed by Adam Barth.
      
      * Scripts/build-webkit:
      
      LayoutTests: Support for Battery Status API.
      https://bugs.webkit.org/show_bug.cgi?id=62698
      
      Add new test cases for Battery Status API.
      http://www.w3.org/TR/battery-status/
      
      Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-03-16
      Reviewed by Adam Barth.
      
      * batterystatus/add-listener-from-callback-expected.txt: Added.
      * batterystatus/add-listener-from-callback.html: Added.
      * batterystatus/basic-all-types-of-events-expected.txt: Added.
      * batterystatus/basic-all-types-of-events.html: Added.
      * batterystatus/basic-operation-expected.txt: Added.
      * batterystatus/basic-operation.html: Added.
      * batterystatus/event-after-navigation-expected.txt: Added.
      * batterystatus/event-after-navigation.html: Added.
      * batterystatus/multiple-frames-expected.txt: Added.
      * batterystatus/multiple-frames.html: Added.
      * batterystatus/resources/event-after-navigation-new.html: Added.
      * batterystatus/script-tests/add-listener-from-callback.js: Added.
      (checkBatteryStatus):
      (firstListener):
      (secondListener):
      (maybeFinishTest):
      * batterystatus/script-tests/basic-all-types-of-events.js: Added.
      (checkBatteryStatus):
      (battery):
      * batterystatus/script-tests/basic-operation.js: Added.
      * batterystatus/script-tests/event-after-navigation.js: Added.
      * batterystatus/script-tests/multiple-frames.js: Added.
      (checkBatteryStatus):
      (checkChildBatteryStatus):
      (mainFrameListener):
      (childFrameListener):
      (maybeFinishTest):
      * batterystatus/script-tests/updates.js: Added.
      (checkBatteryStatus):
      (setBatteryStatus):
      (firstListener):
      (updateListener):
      * batterystatus/script-tests/window-property.js: Added.
      (hasOnBatteryProperty):
      * batterystatus/updates-expected.txt: Added.
      * batterystatus/updates.html: Added.
      * batterystatus/window-property-expected.txt: Added.
      * batterystatus/window-property.html: Added.
      * platform/chromium/test_expectations.txt:
      * platform/gtk/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      * platform/wincairo/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@110991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0de163f6