From 68568abe3a4ed99f5456cf8b1b8c39b0987a0f9c Mon Sep 17 00:00:00 2001 From: Fedor Date: Sat, 19 Apr 2025 19:16:30 +0300 Subject: [PATCH] 68.14.8 - testing --- .../keyboard_shortcuts/test_browser_window.py | 1 - .../firefox-ui/tests/functional/manifest.ini | 1 - .../functional/private_browsing/manifest.ini | 4 - .../test_about_private_browsing.py | 73 - .../tests/puppeteer/test_toolbars.py | 96 +- .../tests/puppeteer/test_windows.py | 2 +- testing/marionette/capture.js | 63 +- .../chrome/{test.xul => test.xhtml} | 12 +- testing/marionette/chrome/test2.xhtml | 20 + testing/marionette/chrome/test2.xul | 19 - .../chrome/test_anonymous_content.xul | 37 - .../{test_dialog.xul => test_dialog.xhtml} | 7 +- ...ed_iframe.xul => test_nested_iframe.xhtml} | 2 +- .../client/docs/advanced/findelement.rst | 39 - .../marionette/client/marionette_driver/by.py | 2 - .../client/marionette_driver/marionette.py | 28 +- testing/marionette/components/marionette.js | 5 +- testing/marionette/doc/internals/element.rst | 4 - testing/marionette/driver.js | 78 +- testing/marionette/element.js | 72 +- .../harness/marionette_harness/__init__.py | 1 - .../marionette_test/__init__.py | 1 - .../marionette_test/decorators.py | 15 - .../tests/unit/test_anonymous_content.py | 87 - .../tests/unit/test_checkbox_chrome.py | 2 +- .../tests/unit/test_click.py | 2 - .../tests/unit/test_click_chrome.py | 2 +- .../tests/unit/test_element_state_chrome.py | 2 +- .../tests/unit/test_elementsize_chrome.py | 2 +- .../tests/unit/test_execute_sandboxes.py | 3 +- .../tests/unit/test_execute_script.py | 11 +- .../tests/unit/test_findelement_chrome.py | 8 +- .../tests/unit/test_get_current_url_chrome.py | 5 +- .../tests/unit/test_marionette.py | 4 +- .../tests/unit/test_mouse_action.py | 4 +- .../tests/unit/test_navigation.py | 13 +- .../tests/unit/test_pagesource_chrome.py | 4 +- .../tests/unit/test_prefs.py | 14 - .../tests/unit/test_screen_orientation.py | 6 - .../tests/unit/test_screenshot.py | 74 +- .../tests/unit/test_switch_frame_chrome.py | 20 +- .../tests/unit/test_switch_window_content.py | 2 - .../tests/unit/test_timeouts.py | 3 +- .../tests/unit/test_title_chrome.py | 2 +- .../tests/unit/test_typing.py | 8 +- .../tests/unit/test_window_close_chrome.py | 2 +- .../tests/unit/test_window_close_content.py | 9 +- .../tests/unit/test_window_handles_chrome.py | 12 +- .../tests/unit/test_window_handles_content.py | 7 +- .../tests/unit/test_window_management.py | 6 +- .../tests/unit/test_window_status_content.py | 6 +- .../tests/unit/test_window_type_chrome.py | 2 +- .../tests/unit/unit-tests.ini | 34 +- testing/marionette/interaction.js | 1 - testing/marionette/jar.mn | 11 +- testing/marionette/listener.js | 45 +- testing/marionette/modal.js | 2 +- .../firefox/docs/ui/browser/tabbar.rst | 6 - .../ui/browser/notifications.py | 3 +- .../firefox_puppeteer/ui/browser/tabbar.py | 61 +- .../firefox_puppeteer/ui/browser/toolbars.py | 155 +- .../firefox_puppeteer/ui/browser/window.py | 1 - .../ui/update_wizard/wizard.py | 2 +- testing/marionette/reftest.js | 3 +- .../marionette/{reftest.xul => reftest.xhtml} | 0 .../BrowserTestUtils/BrowserTestUtils.jsm | 12 +- .../baselinecoverage/chrome/chrome.ini | 2 +- ...verage.xul => test_baselinecoverage.xhtml} | 0 ...wser-harness.xul => browser-harness.xhtml} | 2 +- testing/mochitest/browser-test.js | 289 +-- testing/mochitest/chrome/chrome.ini | 18 +- ...tFile.xul => test_chromeGetTestFile.xhtml} | 8 +- .../{test_sample.xul => test_sample.xhtml} | 0 ...tUtils.xul => test_sanityEventUtils.xhtml} | 18 - ...ception.xul => test_sanityException.xhtml} | 0 ...ption2.xul => test_sanityException2.xhtml} | 0 ...Manifest.xul => test_sanityManifest.xhtml} | 0 ...st_pf.xul => test_sanityManifest_pf.xhtml} | 0 ...t_tasks_skip.xul => test_tasks_skip.xhtml} | 0 ...s_skipall.xul => test_tasks_skipall.xhtml} | 0 .../mochitest/{harness.xul => harness.xhtml} | 0 testing/mochitest/leaks.py | 2 +- testing/mochitest/mochitest_options.py | 6 - testing/mochitest/moz.build | 8 +- testing/mochitest/redirect.html | 2 +- .../test_SpecialPowersExtension.html | 12 +- .../mochitest/tests/SimpleTest/EventUtils.js | 1674 +++++++++++------ .../tests/SimpleTest/ExtensionTestUtils.js | 16 +- .../mochitest/tests/SimpleTest/SimpleTest.js | 4 +- testing/mochitest/tests/browser/dummy.html | 2 +- testing/mozbase/mozrunner/mozrunner/utils.py | 3 + .../configs/unittests/linux_unittest.py | 1 - .../configs/unittests/mac_unittest.py | 1 - .../configs/unittests/win_unittest.py | 1 - .../mozilla/testing/codecoverage.py | 4 +- testing/profiles/common/user.js | 1 - testing/profiles/raptor-android/user.js | 4 + testing/talos/talos/pageloader/api.js | 10 +- .../{pageloader.xul => pageloader.xhtml} | 0 .../sessionrestore/profile/sessionstore.js | 3 - testing/talos/talos/talos-powers/api.js | 17 +- .../talos/talos/tests/devtools/addon/api.js | 2 +- .../tart/addon/content/tab-min-width-1px.css | 2 +- .../talos/tests/tart/addon/content/tart.js | 17 +- testing/talos/talos/tests/twinopen/api.js | 2 +- .../talos/talos/xtalos/xperf_whitelist.json | 2 +- .../drawFocusIfNeeded_001.html.ini | 7 - .../drawFocusIfNeeded_004.html.ini | 7 - .../drawFocusIfNeeded_005.html.ini | 7 - .../meta/css/CSS2/bidi-text/bidi-001.xht.ini | 3 +- .../meta/css/CSS2/bidi-text/bidi-002.xht.ini | 1 + .../CSS2/bidi-text/bidi-box-model-003.xht.ini | 3 + .../meta/css/css-flexbox/__dir__.ini | 1 + .../table-grid-item-dynamic-004.html.ini | 4 +- .../css-pseudo/selection-input-011.html.ini | 2 + .../selection-intercharacter-011.html.ini | 2 + .../selection-intercharacter-012.html.ini | 2 + .../selection-textarea-011.html.ini | 5 + .../boundary-shaping-010.html.ini | 5 - .../css-text/shaping/shaping_lig-000.html.ini | 4 - .../meta/css/selectors/__dir__.ini | 3 +- .../css/selectors/focus-visible-003.html.ini | 6 + .../css/selectors/focus-visible-005.html.ini | 3 +- .../drawFocusIfNeeded_001.html.ini | 5 - .../drawFocusIfNeeded_004.html.ini | 5 - .../drawFocusIfNeeded_005.html.ini | 5 - .../the-bdo-element/bdo-child.html.ini | 3 + .../the-bdo-element/bidi-001.html.ini | 3 + .../buffered-flag.window.js.ini | 4 + .../longtask-timing/containerTypes.html.ini | 13 + .../longtask-timing/idlharness.window.js.ini | 3 - .../long-microtask.window.js.ini | 4 + .../longtask-attributes.html.ini | 3 - ...ngtask-in-childiframe-crossorigin.html.ini | 6 - .../longtask-in-childiframe.html.ini | 3 - .../longtask-in-externalscript.html.ini | 3 - .../longtask-in-parentiframe.html.ini | 3 - .../longtask-timing/longtask-in-raf.html.ini | 3 - ...ask-in-sibling-iframe-crossorigin.html.ini | 6 - .../longtask-in-sibling-iframe.html.ini | 6 - .../supported-longtask-types.window.js.ini | 3 + .../direction/direction-008.html.ini | 3 + .../direction/direction-009.html.ini | 4 + .../fractions/frac-linethickness-001.html.ini | 2 +- .../frac-parameters-gap-001.html.ini | 5 + .../frac-parameters-gap-002.html.ini | 5 + .../frac-parameters-gap-003.html.ini | 5 + .../frac-parameters-gap-004.html.ini | 5 + .../frac-parameters-gap-005.html.ini | 5 + .../frac-parameters-gap-006.html.ini | 5 + .../operators/mo-movablelimits.html.ini | 2 + .../attribute-mapping-001.html.ini | 196 ++ .../attribute-mapping-002.html.ini | 288 +++ .../relations/css-styling/color-001.html.ini | 3 + .../relations/css-styling/color-002.html.ini | 3 + .../relations/css-styling/color-003.html.ini | 3 + .../relations/css-styling/color-004.html.ini | 5 + .../relations/css-styling/color-1.html.ini | 5 - .../relations/css-styling/lengths-1.html.ini | 2 +- .../relations/css-styling/lengths-2.html.ini | 8 + .../mathsize-attribute-css-keywords.html.ini | 2 + .../mathsize-attribute-legacy-values.html.ini | 2 + .../padding-border-margin/border-001.html.ini | 18 + .../padding-border-margin/border-002.html.ini | 147 ++ .../padding-border-margin/margin-001.html.ini | 18 + .../padding-border-margin/margin-002.html.ini | 219 +++ .../padding-001.html.ini | 18 + .../padding-002.html.ini | 147 ++ .../css-styling/width-height-001.html.ini | 6 + .../writing-mode/writing-mode-001.html.ini | 19 + .../writing-mode/writing-mode-002.html.ini | 372 ++++ .../meta/paint-timing/__dir__.ini | 0 .../fcp-only/fcp-background-size.html.ini | 4 - .../fcp-only/fcp-bg-image-set.html.ini | 3 +- .../fcp-only/fcp-bg-image-two-steps.html.ini | 4 - .../fcp-only/fcp-canvas-context.html.ini | 4 - .../fcp-only/fcp-gradient.html.ini | 4 - ...cp-invisible-3d-rotate-descendant.html.ini | 4 - .../fcp-only/fcp-invisible-3d-rotate.html.ini | 4 - .../fcp-invisible-scale-transition.html.ini | 4 - .../fcp-only/fcp-invisible-scale.html.ini | 4 - .../fcp-only/fcp-invisible-text.html.ini | 4 - .../fcp-only/fcp-opacity-descendant.html.ini | 4 - .../fcp-only/fcp-opacity.html.ini | 4 - .../fcp-out-of-bounds-translate.html.ini | 4 - .../fcp-only/fcp-out-of-bounds.html.ini | 4 - .../fcp-pseudo-element-display.html.ini | 4 - .../fcp-pseudo-element-image.html.ini | 4 - .../fcp-pseudo-element-opacity.html.ini | 4 - .../fcp-only/fcp-pseudo-element-text.html.ini | 4 - .../fcp-pseudo-element-visibility.html.ini | 4 - .../paint-timing/fcp-only/fcp-svg.html.ini | 4 - .../fcp-only/fcp-text-input.html.ini | 4 + .../fcp-only/fcp-video-frame.html.ini | 3 +- .../fcp-only/fcp-video-poster.html.ini | 4 - .../fcp-only/fcp-whitespace.html.ini | 4 - .../first-contentful-canvas-none.html.ini | 3 + .../paint-timing/idlharness.window.js.ini | 31 - .../meta/paint-timing/input-text.html.ini | 4 - .../replaced-content-image.html.ini | 4 +- .../supported-paint-type.window.js.ini | 4 - .../{ => with-first-paint}/basetest.html.ini | 2 +- .../border-image.html.ini | 4 +- .../buffered-flag.window.js.ini | 5 + .../child-painting-first-image.html.ini | 2 +- .../first-contentful-bg-image.html.ini | 2 +- .../first-contentful-canvas-webgl2.html.ini | 3 + .../first-contentful-canvas.html.ini | 2 +- .../first-contentful-image.html.ini | 3 +- .../first-contentful-paint.html.ini | 2 +- .../first-contentful-svg.html.ini | 2 +- .../first-image-child.html.ini | 2 +- .../first-paint-bg-color.html.ini | 2 +- .../first-paint-only.html.ini | 2 +- .../mask-image.html.ini | 4 +- .../paint-visited.html.ini | 2 +- .../sibling-painting-first-image.html.ini | 2 +- .../case-sensitivity.any.js.ini | 7 + ...sconnect-removes-observed-types.any.js.ini | 8 + .../resource-timing/buffered-flag.any.js.ini | 7 + .../meta/user-timing/idlharness.any.js.ini | 11 + .../dynamic-isize-change-001-ref.html | 37 + .../css-flexbox/dynamic-isize-change-001.html | 49 + .../css-flexbox/dynamic-isize-change-002.html | 40 + .../css-flexbox/dynamic-isize-change-003.html | 43 + .../css-flexbox/dynamic-isize-change-004.html | 42 + ...ith-percentage-width-in-flex-item-ref.html | 64 + ...ut-with-percentage-width-in-flex-item.html | 69 + .../css/css-flexbox/flex-basis-011-ref.html | 21 + .../tests/css/css-flexbox/flex-basis-011.html | 24 + .../tests/css/css-flexbox/flex-basis-012.html | 9 + .../flexbox-baseline-nested-001-ref.html | 26 + .../flexbox-baseline-nested-001.html | 35 + ...grid-with-content-dynamic-display-001.html | 50 + ...grid-with-content-dynamic-display-002.html | 50 + .../nested-grid-item-block-size-001-ref.html | 27 + .../nested-grid-item-block-size-001.html | 37 + .../css/css-grid/support/colors-8x16.png | Bin 0 -> 92 bytes .../overflow-empty-child-box.html | 59 + .../selection-contenteditable-011-ref.html | 21 + .../reference/selection-input-011-ref.html | 24 + .../selection-intercharacter-011-ref.html | 26 + .../selection-intercharacter-012-ref.html | 26 + .../reference/selection-textarea-011-ref.html | 27 + .../selection-contenteditable-011.html | 45 + .../css/css-pseudo/selection-input-011.html | 43 + .../selection-intercharacter-011.html | 49 + .../selection-intercharacter-012.html | 49 + .../css-pseudo/selection-textarea-011.html | 46 + ...003-manual.html => focus-visible-003.html} | 19 +- .../selectors/focus-visible-004-manual.html | 9 +- .../tests/element-timing/buffered-flag.html | 42 + ...cus_drawFocusIfNeeded_AAPI_001-manual.html | 0 .../drawFocusIfNeeded_001.html | 0 .../drawFocusIfNeeded_002.html | 0 .../drawFocusIfNeeded_003.html | 0 .../drawFocusIfNeeded_004.html | 0 .../drawFocusIfNeeded_005.html | 0 .../tests/interfaces/user-timing.idl | 30 +- .../longtask-timing/buffered-flag.window.js | 26 + .../tests/longtask-timing/containerTypes.html | 64 + .../longtask-timing/long-microtask.window.js | 26 + .../longtask-timing/longtask-attributes.html | 6 +- .../longtask-in-childiframe-crossorigin.html | 6 +- .../longtask-in-childiframe.html | 6 +- .../longtask-in-externalscript.html | 6 +- .../longtask-in-parentiframe.html | 6 +- .../longtask-timing/longtask-in-raf.html | 6 +- ...ongtask-in-sibling-iframe-crossorigin.html | 6 +- .../longtask-in-sibling-iframe.html | 6 +- .../longtask-timing/longtask-tojson.html | 7 +- .../subframe-observing-longtask.html | 1 + .../longtask-in-new-window.html | 5 +- .../supported-longtask-types.window.js | 31 +- .../direction/direction-006-ref.html | 74 + .../direction/direction-006.html | 79 + .../direction/direction-007-ref.html | 42 + .../direction/direction-007.html | 50 + .../direction/direction-008-ref.html | 27 + .../direction/direction-008.html | 33 + .../direction/direction-009-ref.html | 21 + .../direction/direction-009.html | 27 + .../direction/direction-010-ref.html | 44 + .../direction/direction-010.html | 51 + .../fractions/frac-linethickness-002-ref.html | 4 +- .../fractions/frac-linethickness-002.html | 3 +- .../css-styling/attribute-mapping-001.html | 85 + .../css-styling/attribute-mapping-002.html | 59 + .../relations/css-styling/lengths-2-ref.html | 14 - .../relations/css-styling/lengths-2.html | 343 ++-- .../relations/css-styling/lengths-3.html | 159 -- .../mathsize-attribute-css-keywords-ref.html | 22 + .../mathsize-attribute-css-keywords.html | 26 + .../mathsize-attribute-legacy-values-ref.html | 16 + .../mathsize-attribute-legacy-values.html | 20 + .../css-styling/mathvariant-bold-fraktur.html | 4 +- .../css-styling/mathvariant-bold-italic.html | 4 +- .../mathvariant-bold-sans-serif.html | 4 +- .../css-styling/mathvariant-bold-script.html | 4 +- .../css-styling/mathvariant-bold.html | 4 +- .../mathvariant-double-struck.html | 4 +- .../css-styling/mathvariant-fraktur.html | 4 +- .../css-styling/mathvariant-initial.html | 4 +- .../css-styling/mathvariant-italic.html | 4 +- .../css-styling/mathvariant-looped.html | 4 +- .../css-styling/mathvariant-monospace.html | 4 +- .../mathvariant-sans-serif-bold-italic.html | 4 +- .../mathvariant-sans-serif-italic.html | 4 +- .../css-styling/mathvariant-sans-serif.html | 4 +- .../css-styling/mathvariant-script.html | 4 +- .../css-styling/mathvariant-stretched.html | 4 +- .../css-styling/mathvariant-tailed.html | 4 +- .../padding-border-margin/border-001.html | 104 + .../padding-border-margin/border-002.html | 51 + .../padding-border-margin/helper.js | 79 + .../padding-border-margin/margin-001.html | 104 + .../padding-border-margin/margin-002.html | 51 + .../padding-border-margin/padding-001.html | 104 + .../padding-border-margin/padding-002.html | 51 + .../padding-border-margin/padding-003.html | 39 + .../relations/css-styling/visibility-1.html | 6 +- .../writing-mode/writing-mode-001.html | 121 ++ .../mathml/relations/html5-tree/class-1.html | 3 +- .../mathml/relations/html5-tree/class-2.html | 3 +- .../html5-tree/color-attributes-1.html | 3 +- .../relations/html5-tree/display-1.html | 3 +- .../relations/html5-tree/dynamic-1.html | 2 +- .../relations/html5-tree/href-click-1.html | 3 +- .../relations/html5-tree/href-click-2.html | 3 +- .../relations/html5-tree/href-click-3.html | 3 +- .../html5-tree/integration-point-1.html | 2 +- .../html5-tree/integration-point-2.html | 2 +- .../html5-tree/integration-point-3.html | 2 +- .../html5-tree/required-extensions-2.html | 2 +- .../html5-tree/unique-identifier-1.html | 2 +- .../html5-tree/unique-identifier-2.html | 3 +- .../html5-tree/unique-identifier-3.html | 3 +- .../text-and-math/use-typo-metrics-1.html | 2 +- .../tests/mathml/support/layout-comparison.js | 86 + .../tests/mathml/support/mathml-fragments.js | 151 ++ .../mathml/tools/mathvariant-transforms.py | 4 +- .../navigation-timing/buffered-flag.window.js | 16 + .../test_document_onload.html | 48 + .../tests/paint-timing/basetest.html | 1 + .../paint-timing/buffered-flag.window.js | 35 + .../child-painting-first-image.html | 1 + .../fcp-only/fcp-canvas-context.html | 6 +- .../fcp-ensure-update-the-rendering-step.html | 55 + .../paint-timing/fcp-only/fcp-gradient.html | 5 +- .../paint-timing/fcp-only/fcp-text-input.html | 23 + .../fcp-only/fcp-typographic-pseudo.html | 32 + .../fcp-only/fcp-video-frame.html | 7 +- .../fcp-only/fcp-video-poster.html | 6 +- .../paint-timing/fcp-only/fcp-with-rtl.html | 30 + .../first-contentful-bg-image.html | 1 + .../paint-timing/first-contentful-canvas.html | 1 + .../paint-timing/first-contentful-image.html | 1 + .../paint-timing/first-contentful-paint.html | 1 + .../paint-timing/first-contentful-svg.html | 1 + .../tests/paint-timing/first-image-child.html | 19 +- .../paint-timing/first-paint-bg-color.html | 1 + .../tests/paint-timing/first-paint-only.html | 1 + .../tests/paint-timing/paint-visited.html | 6 +- .../tests/paint-timing/resources/utils.js | 46 +- .../sibling-painting-first-image.html | 1 + .../supported-paint-type.window.js | 35 +- .../buffered-flag-after-timeout.any.js | 11 + .../buffered-flag-observer.any.js | 15 + .../multiple-buffered-flag-observers.any.js | 32 + .../observer-buffered-false.any.js | 12 + ...o-disconnect-removes-observed-types.any.js | 19 + .../po-observe-repeated-type.any.js | 17 + .../resource-timing/buffered-flag.any.js | 18 + .../tests/user-timing/buffered-flag.any.js | 27 + 374 files changed, 6669 insertions(+), 2721 deletions(-) delete mode 100644 testing/firefox-ui/tests/functional/private_browsing/manifest.ini delete mode 100644 testing/firefox-ui/tests/functional/private_browsing/test_about_private_browsing.py rename testing/marionette/chrome/{test.xul => test.xhtml} (68%) create mode 100644 testing/marionette/chrome/test2.xhtml delete mode 100644 testing/marionette/chrome/test2.xul delete mode 100644 testing/marionette/chrome/test_anonymous_content.xul rename testing/marionette/chrome/{test_dialog.xul => test_dialog.xhtml} (84%) rename testing/marionette/chrome/{test_nested_iframe.xul => test_nested_iframe.xhtml} (81%) delete mode 100644 testing/marionette/harness/marionette_harness/tests/unit/test_anonymous_content.py rename testing/marionette/{reftest.xul => reftest.xhtml} (100%) rename testing/mochitest/baselinecoverage/chrome/{test_baselinecoverage.xul => test_baselinecoverage.xhtml} (100%) rename testing/mochitest/{browser-harness.xul => browser-harness.xhtml} (99%) rename testing/mochitest/chrome/{test_chromeGetTestFile.xul => test_chromeGetTestFile.xhtml} (93%) rename testing/mochitest/chrome/{test_sample.xul => test_sample.xhtml} (100%) rename testing/mochitest/chrome/{test_sanityEventUtils.xul => test_sanityEventUtils.xhtml} (85%) rename testing/mochitest/chrome/{test_sanityException.xul => test_sanityException.xhtml} (100%) rename testing/mochitest/chrome/{test_sanityException2.xul => test_sanityException2.xhtml} (100%) rename testing/mochitest/chrome/{test_sanityManifest.xul => test_sanityManifest.xhtml} (100%) rename testing/mochitest/chrome/{test_sanityManifest_pf.xul => test_sanityManifest_pf.xhtml} (100%) rename testing/mochitest/chrome/{test_tasks_skip.xul => test_tasks_skip.xhtml} (100%) rename testing/mochitest/chrome/{test_tasks_skipall.xul => test_tasks_skipall.xhtml} (100%) rename testing/mochitest/{harness.xul => harness.xhtml} (100%) rename testing/talos/talos/pageloader/chrome/{pageloader.xul => pageloader.xhtml} (100%) delete mode 100644 testing/web-platform/meta/2dcontext/drawing-paths-to-the-canvas/drawFocusIfNeeded_001.html.ini delete mode 100644 testing/web-platform/meta/2dcontext/drawing-paths-to-the-canvas/drawFocusIfNeeded_004.html.ini delete mode 100644 testing/web-platform/meta/2dcontext/drawing-paths-to-the-canvas/drawFocusIfNeeded_005.html.ini create mode 100644 testing/web-platform/meta/css/CSS2/bidi-text/bidi-box-model-003.xht.ini create mode 100644 testing/web-platform/meta/css/css-flexbox/__dir__.ini create mode 100644 testing/web-platform/meta/css/css-pseudo/selection-input-011.html.ini create mode 100644 testing/web-platform/meta/css/css-pseudo/selection-intercharacter-011.html.ini create mode 100644 testing/web-platform/meta/css/css-pseudo/selection-intercharacter-012.html.ini create mode 100644 testing/web-platform/meta/css/css-pseudo/selection-textarea-011.html.ini delete mode 100644 testing/web-platform/meta/css/css-text/boundary-shaping/boundary-shaping-010.html.ini delete mode 100644 testing/web-platform/meta/css/css-text/shaping/shaping_lig-000.html.ini create mode 100644 testing/web-platform/meta/css/selectors/focus-visible-003.html.ini delete mode 100644 testing/web-platform/meta/html/canvas/element/drawing-paths-to-the-canvas/drawFocusIfNeeded_001.html.ini delete mode 100644 testing/web-platform/meta/html/canvas/element/drawing-paths-to-the-canvas/drawFocusIfNeeded_004.html.ini delete mode 100644 testing/web-platform/meta/html/canvas/element/drawing-paths-to-the-canvas/drawFocusIfNeeded_005.html.ini create mode 100644 testing/web-platform/meta/html/semantics/text-level-semantics/the-bdo-element/bdo-child.html.ini create mode 100644 testing/web-platform/meta/html/semantics/text-level-semantics/the-bdo-element/bidi-001.html.ini create mode 100644 testing/web-platform/meta/longtask-timing/buffered-flag.window.js.ini create mode 100644 testing/web-platform/meta/longtask-timing/containerTypes.html.ini create mode 100644 testing/web-platform/meta/longtask-timing/long-microtask.window.js.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/direction/direction-008.html.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/direction/direction-009.html.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/fractions/frac-parameters-gap-001.html.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/fractions/frac-parameters-gap-002.html.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/fractions/frac-parameters-gap-003.html.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/fractions/frac-parameters-gap-004.html.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/fractions/frac-parameters-gap-005.html.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/fractions/frac-parameters-gap-006.html.ini create mode 100644 testing/web-platform/meta/mathml/presentation-markup/operators/mo-movablelimits.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/attribute-mapping-001.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/attribute-mapping-002.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/color-001.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/color-002.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/color-003.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/color-004.html.ini delete mode 100644 testing/web-platform/meta/mathml/relations/css-styling/color-1.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/lengths-2.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/mathsize-attribute-css-keywords.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/mathsize-attribute-legacy-values.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/padding-border-margin/border-001.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/padding-border-margin/border-002.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/padding-border-margin/margin-001.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/padding-border-margin/margin-002.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/padding-border-margin/padding-001.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/padding-border-margin/padding-002.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/width-height-001.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/writing-mode/writing-mode-001.html.ini create mode 100644 testing/web-platform/meta/mathml/relations/css-styling/writing-mode/writing-mode-002.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/__dir__.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-background-size.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-bg-image-two-steps.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-canvas-context.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-gradient.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-invisible-3d-rotate-descendant.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-invisible-3d-rotate.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-invisible-scale-transition.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-invisible-scale.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-invisible-text.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-opacity-descendant.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-opacity.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-out-of-bounds-translate.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-out-of-bounds.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-pseudo-element-display.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-pseudo-element-image.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-pseudo-element-opacity.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-pseudo-element-text.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-pseudo-element-visibility.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-svg.html.ini create mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-text-input.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-video-poster.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/fcp-only/fcp-whitespace.html.ini create mode 100644 testing/web-platform/meta/paint-timing/first-contentful-canvas-none.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/idlharness.window.js.ini delete mode 100644 testing/web-platform/meta/paint-timing/input-text.html.ini delete mode 100644 testing/web-platform/meta/paint-timing/supported-paint-type.window.js.ini rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/basetest.html.ini (57%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/border-image.html.ini (61%) create mode 100644 testing/web-platform/meta/paint-timing/with-first-paint/buffered-flag.window.js.ini rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/child-painting-first-image.html.ini (67%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/first-contentful-bg-image.html.ini (65%) create mode 100644 testing/web-platform/meta/paint-timing/with-first-paint/first-contentful-canvas-webgl2.html.ini rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/first-contentful-canvas.html.ini (62%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/first-contentful-image.html.ini (57%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/first-contentful-paint.html.ini (69%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/first-contentful-svg.html.ini (59%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/first-image-child.html.ini (66%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/first-paint-bg-color.html.ini (61%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/first-paint-only.html.ini (65%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/mask-image.html.ini (60%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/paint-visited.html.ini (60%) rename testing/web-platform/meta/paint-timing/{ => with-first-paint}/sibling-painting-first-image.html.ini (65%) create mode 100644 testing/web-platform/meta/performance-timeline/case-sensitivity.any.js.ini create mode 100644 testing/web-platform/meta/performance-timeline/po-disconnect-removes-observed-types.any.js.ini create mode 100644 testing/web-platform/meta/resource-timing/buffered-flag.any.js.ini create mode 100644 testing/web-platform/tests/css/css-flexbox/dynamic-isize-change-001-ref.html create mode 100644 testing/web-platform/tests/css/css-flexbox/dynamic-isize-change-001.html create mode 100644 testing/web-platform/tests/css/css-flexbox/dynamic-isize-change-002.html create mode 100644 testing/web-platform/tests/css/css-flexbox/dynamic-isize-change-003.html create mode 100644 testing/web-platform/tests/css/css-flexbox/dynamic-isize-change-004.html create mode 100644 testing/web-platform/tests/css/css-flexbox/fixed-table-layout-with-percentage-width-in-flex-item-ref.html create mode 100644 testing/web-platform/tests/css/css-flexbox/fixed-table-layout-with-percentage-width-in-flex-item.html create mode 100644 testing/web-platform/tests/css/css-flexbox/flex-basis-011-ref.html create mode 100644 testing/web-platform/tests/css/css-flexbox/flex-basis-011.html create mode 100644 testing/web-platform/tests/css/css-flexbox/flex-basis-012.html create mode 100644 testing/web-platform/tests/css/css-flexbox/flexbox-baseline-nested-001-ref.html create mode 100644 testing/web-platform/tests/css/css-flexbox/flexbox-baseline-nested-001.html create mode 100644 testing/web-platform/tests/css/css-grid/grid-with-content-dynamic-display-001.html create mode 100644 testing/web-platform/tests/css/css-grid/grid-with-content-dynamic-display-002.html create mode 100644 testing/web-platform/tests/css/css-grid/nested-grid-item-block-size-001-ref.html create mode 100644 testing/web-platform/tests/css/css-grid/nested-grid-item-block-size-001.html create mode 100644 testing/web-platform/tests/css/css-grid/support/colors-8x16.png create mode 100644 testing/web-platform/tests/css/css-overflow/overflow-empty-child-box.html create mode 100644 testing/web-platform/tests/css/css-pseudo/reference/selection-contenteditable-011-ref.html create mode 100644 testing/web-platform/tests/css/css-pseudo/reference/selection-input-011-ref.html create mode 100644 testing/web-platform/tests/css/css-pseudo/reference/selection-intercharacter-011-ref.html create mode 100644 testing/web-platform/tests/css/css-pseudo/reference/selection-intercharacter-012-ref.html create mode 100644 testing/web-platform/tests/css/css-pseudo/reference/selection-textarea-011-ref.html create mode 100644 testing/web-platform/tests/css/css-pseudo/selection-contenteditable-011.html create mode 100644 testing/web-platform/tests/css/css-pseudo/selection-input-011.html create mode 100644 testing/web-platform/tests/css/css-pseudo/selection-intercharacter-011.html create mode 100644 testing/web-platform/tests/css/css-pseudo/selection-intercharacter-012.html create mode 100644 testing/web-platform/tests/css/css-pseudo/selection-textarea-011.html rename testing/web-platform/tests/css/selectors/{focus-visible-003-manual.html => focus-visible-003.html} (86%) create mode 100644 testing/web-platform/tests/element-timing/buffered-flag.html rename testing/web-platform/tests/{2dcontext => html/canvas/element/manual}/drawing-paths-to-the-canvas/canvas_focus_drawFocusIfNeeded_AAPI_001-manual.html (100%) rename testing/web-platform/tests/{2dcontext => html/canvas/element/manual}/drawing-paths-to-the-canvas/drawFocusIfNeeded_001.html (100%) rename testing/web-platform/tests/{2dcontext => html/canvas/element/manual}/drawing-paths-to-the-canvas/drawFocusIfNeeded_002.html (100%) rename testing/web-platform/tests/{2dcontext => html/canvas/element/manual}/drawing-paths-to-the-canvas/drawFocusIfNeeded_003.html (100%) rename testing/web-platform/tests/{2dcontext => html/canvas/element/manual}/drawing-paths-to-the-canvas/drawFocusIfNeeded_004.html (100%) rename testing/web-platform/tests/{2dcontext => html/canvas/element/manual}/drawing-paths-to-the-canvas/drawFocusIfNeeded_005.html (100%) create mode 100644 testing/web-platform/tests/longtask-timing/buffered-flag.window.js create mode 100644 testing/web-platform/tests/longtask-timing/containerTypes.html create mode 100644 testing/web-platform/tests/longtask-timing/long-microtask.window.js create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-006-ref.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-006.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-007-ref.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-007.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-008-ref.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-008.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-009-ref.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-009.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-010-ref.html create mode 100644 testing/web-platform/tests/mathml/presentation-markup/direction/direction-010.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/attribute-mapping-001.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/attribute-mapping-002.html delete mode 100644 testing/web-platform/tests/mathml/relations/css-styling/lengths-2-ref.html delete mode 100644 testing/web-platform/tests/mathml/relations/css-styling/lengths-3.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/mathsize-attribute-css-keywords-ref.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/mathsize-attribute-css-keywords.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/mathsize-attribute-legacy-values-ref.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/mathsize-attribute-legacy-values.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/border-001.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/border-002.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/helper.js create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/margin-001.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/margin-002.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-001.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-002.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-003.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/writing-mode/writing-mode-001.html create mode 100644 testing/web-platform/tests/mathml/support/layout-comparison.js create mode 100644 testing/web-platform/tests/mathml/support/mathml-fragments.js create mode 100644 testing/web-platform/tests/navigation-timing/buffered-flag.window.js create mode 100644 testing/web-platform/tests/navigation-timing/test_document_onload.html create mode 100644 testing/web-platform/tests/paint-timing/buffered-flag.window.js create mode 100644 testing/web-platform/tests/paint-timing/fcp-only/fcp-ensure-update-the-rendering-step.html create mode 100644 testing/web-platform/tests/paint-timing/fcp-only/fcp-text-input.html create mode 100644 testing/web-platform/tests/paint-timing/fcp-only/fcp-typographic-pseudo.html create mode 100644 testing/web-platform/tests/paint-timing/fcp-only/fcp-with-rtl.html create mode 100644 testing/web-platform/tests/performance-timeline/buffered-flag-after-timeout.any.js create mode 100644 testing/web-platform/tests/performance-timeline/buffered-flag-observer.any.js create mode 100644 testing/web-platform/tests/performance-timeline/multiple-buffered-flag-observers.any.js create mode 100644 testing/web-platform/tests/performance-timeline/observer-buffered-false.any.js create mode 100644 testing/web-platform/tests/performance-timeline/po-disconnect-removes-observed-types.any.js create mode 100644 testing/web-platform/tests/performance-timeline/po-observe-repeated-type.any.js create mode 100644 testing/web-platform/tests/resource-timing/buffered-flag.any.js create mode 100644 testing/web-platform/tests/user-timing/buffered-flag.any.js diff --git a/testing/firefox-ui/tests/functional/keyboard_shortcuts/test_browser_window.py b/testing/firefox-ui/tests/functional/keyboard_shortcuts/test_browser_window.py index d3f73f7468..dccd7ba7ea 100644 --- a/testing/firefox-ui/tests/functional/keyboard_shortcuts/test_browser_window.py +++ b/testing/firefox-ui/tests/functional/keyboard_shortcuts/test_browser_window.py @@ -47,7 +47,6 @@ class TestBrowserWindowShortcuts(PuppeteerMixin, MarionetteTestCase): # TODO: Check that the right input box is focused # Located below searchbar as class="textbox-input" - # Anon locator has not been released yet (bug 1080764) def has_input_selected(mn): selection_name = mn.execute_script(""" return window.document.activeElement.localName; diff --git a/testing/firefox-ui/tests/functional/manifest.ini b/testing/firefox-ui/tests/functional/manifest.ini index 791291e12d..32292c94fc 100644 --- a/testing/firefox-ui/tests/functional/manifest.ini +++ b/testing/firefox-ui/tests/functional/manifest.ini @@ -1,5 +1,4 @@ [include:keyboard_shortcuts/manifest.ini] -[include:private_browsing/manifest.ini] [include:safebrowsing/manifest.ini] [include:security/manifest.ini] [include:sessionstore/manifest.ini] diff --git a/testing/firefox-ui/tests/functional/private_browsing/manifest.ini b/testing/firefox-ui/tests/functional/private_browsing/manifest.ini deleted file mode 100644 index 34ef273653..0000000000 --- a/testing/firefox-ui/tests/functional/private_browsing/manifest.ini +++ /dev/null @@ -1,4 +0,0 @@ -[DEFAULT] -tags = local - -[test_about_private_browsing.py] diff --git a/testing/firefox-ui/tests/functional/private_browsing/test_about_private_browsing.py b/testing/firefox-ui/tests/functional/private_browsing/test_about_private_browsing.py deleted file mode 100644 index 81d5e3df8c..0000000000 --- a/testing/firefox-ui/tests/functional/private_browsing/test_about_private_browsing.py +++ /dev/null @@ -1,73 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -from __future__ import absolute_import -from firefox_puppeteer import PuppeteerMixin -from firefox_puppeteer.ui.browser.window import BrowserWindow -from marionette_driver import By, Wait -from marionette_harness import MarionetteTestCase - - -class TestAboutPrivateBrowsingWithSearch(PuppeteerMixin, MarionetteTestCase): - - def setUp(self): - super(TestAboutPrivateBrowsingWithSearch, self).setUp() - - # Use a fake local support URL - support_url = 'about:blank?' - self.marionette.set_pref('app.support.baseURL', support_url) - self.pb_url = support_url + 'private-browsing-myths' - - def tearDown(self): - try: - self.puppeteer.windows.close_all([self.browser]) - self.browser.switch_to() - - self.marionette.clear_pref('app.support.baseURL') - finally: - super(TestAboutPrivateBrowsingWithSearch, self).tearDown() - - def testCheckAboutPrivateBrowsingWithSearch(self): - self.assertFalse(self.browser.is_private) - - with self.marionette.using_context('content'): - self.marionette.navigate('about:privatebrowsing') - - # Disabled awaiting support for Fluent strings in firefox-ui tests (bug 1534310) - # status_node = self.marionette.find_element(By.CSS_SELECTOR, 'p.showNormal') - # self.assertEqual(status_node.text, - # self.browser.localize_entity('aboutPrivateBrowsing.notPrivate'), - # 'Status text indicates we are not in private browsing mode') - - def window_opener(win): - with win.marionette.using_context('content'): - button = self.marionette.find_element(By.ID, 'startPrivateBrowsing') - button.click() - - pb_window = self.browser.open_window(callback=window_opener, - expected_window_class=BrowserWindow) - - try: - self.assertTrue(pb_window.is_private) - - # Test the search hand-off - with self.marionette.using_context('content'): - search = self.marionette.find_element(By.ID, 'search-handoff-button') - search.click() - - self.assertTrue(pb_window.navbar.locationbar.focused, 'url bar is focused') - - pb_window.navbar.locationbar.urlbar.send_keys('foo') - self.assertEqual(pb_window.navbar.locationbar.value, '@google foo', - 'url bar prepends the @search shortcut') - - # Test the private browsing myths link - with self.marionette.using_context('content'): - link = self.marionette.find_element(By.ID, 'private-browsing-myths') - link.click() - Wait(self.marionette, timeout=self.marionette.timeout.page_load).until( - lambda _: self.marionette.get_url() == self.pb_url) - - finally: - pb_window.close() diff --git a/testing/firefox-ui/tests/puppeteer/test_toolbars.py b/testing/firefox-ui/tests/puppeteer/test_toolbars.py index 689746db65..8b60af3814 100644 --- a/testing/firefox-ui/tests/puppeteer/test_toolbars.py +++ b/testing/firefox-ui/tests/puppeteer/test_toolbars.py @@ -85,27 +85,13 @@ class TestLocationBar(PuppeteerMixin, MarionetteTestCase): self.locationbar = self.browser.navbar.locationbar def test_elements(self): - self.assertEqual(self.locationbar.urlbar.get_property('localName'), 'textbox') - self.assertIn('urlbar-input', self.locationbar.urlbar_input.get_property('className')) + self.assertEqual(self.locationbar.urlbar_input.get_property('id'), 'urlbar-input') - self.assertEqual(self.locationbar.connection_icon.get_property('localName'), 'image') - self.assertEqual(self.locationbar.identity_box.get_property('localName'), 'box') - self.assertEqual(self.locationbar.identity_country_label.get_property('localName'), - 'label') - self.assertEqual(self.locationbar.identity_organization_label.get_property('localName'), - 'label') - self.assertEqual(self.locationbar.identity_icon.get_property('localName'), 'image') - self.assertEqual(self.locationbar.history_drop_marker.get_property('localName'), - 'dropmarker') self.assertEqual(self.locationbar.reload_button.get_property('localName'), 'toolbarbutton') self.assertEqual(self.locationbar.stop_button.get_property('localName'), 'toolbarbutton') - self.assertEqual(self.locationbar.contextmenu.get_property('localName'), 'menupopup') - self.assertEqual(self.locationbar.get_contextmenu_entry('paste').get_attribute('cmd'), - 'cmd_paste') - def test_reload(self): event_types = ["shortcut", "shortcut2", "button"] for event in event_types: @@ -131,83 +117,3 @@ class TestLocationBar(PuppeteerMixin, MarionetteTestCase): with self.marionette.using_context('content'): Wait(self.marionette).until(lambda mn: mn.get_url() == data_uri) - - -class TestIdentityPopup(PuppeteerMixin, MarionetteTestCase): - def setUp(self): - super(TestIdentityPopup, self).setUp() - - self.locationbar = self.browser.navbar.locationbar - self.identity_popup = self.locationbar.identity_popup - - self.url = 'https://extended-validation.badssl.com' - - with self.marionette.using_context('content'): - self.marionette.navigate(self.url) - - def tearDown(self): - try: - self.identity_popup.close(force=True) - finally: - super(TestIdentityPopup, self).tearDown() - - def test_elements(self): - self.locationbar.open_identity_popup() - - # Test main view elements - main = self.identity_popup.view.main - self.assertEqual(main.element.get_property('localName'), 'panelview') - - self.assertEqual(main.expander.get_property('localName'), 'button') - self.assertEqual(main.host.get_property('localName'), 'label') - self.assertEqual(main.insecure_connection_label.get_property('localName'), - 'description') - self.assertEqual(main.internal_connection_label.get_property('localName'), - 'description') - self.assertEqual(main.secure_connection_label.get_property('localName'), - 'description') - - self.assertEqual(main.permissions.get_property('localName'), 'vbox') - - # Test security view elements - security = self.identity_popup.view.security - self.assertEqual(security.element.get_property('localName'), 'panelview') - - self.assertEqual(security.host.get_property('localName'), 'label') - self.assertEqual(security.insecure_connection_label.get_property('localName'), - 'description') - self.assertEqual(security.secure_connection_label.get_property('localName'), - 'description') - - self.assertEqual(security.owner.get_property('localName'), 'description') - self.assertEqual(security.owner_location.get_property('localName'), 'description') - self.assertEqual(security.verifier.get_property('localName'), 'description') - - self.assertEqual(security.disable_mixed_content_blocking_button.get_property('localName'), - 'button') - self.assertEqual(security.enable_mixed_content_blocking_button.get_property('localName'), - 'button') - - self.assertEqual(security.more_info_button.get_property('localName'), 'button') - - def test_open_close(self): - with self.marionette.using_context('content'): - self.marionette.navigate(self.url) - - self.assertFalse(self.identity_popup.is_open) - - self.locationbar.open_identity_popup() - - self.identity_popup.close() - self.assertFalse(self.identity_popup.is_open) - - def test_force_close(self): - with self.marionette.using_context('content'): - self.marionette.navigate(self.url) - - self.assertFalse(self.identity_popup.is_open) - - self.locationbar.open_identity_popup() - - self.identity_popup.close(force=True) - self.assertFalse(self.identity_popup.is_open) diff --git a/testing/firefox-ui/tests/puppeteer/test_windows.py b/testing/firefox-ui/tests/puppeteer/test_windows.py index 849b7aa421..35327d2396 100644 --- a/testing/firefox-ui/tests/puppeteer/test_windows.py +++ b/testing/firefox-ui/tests/puppeteer/test_windows.py @@ -68,7 +68,7 @@ class TestWindows(PuppeteerMixin, MarionetteTestCase): def open_by_js(_): with self.marionette.using_context('chrome'): self.marionette.execute_script(""" - window.open('chrome://browser/content/safeMode.xul', '_blank', + window.open('chrome://browser/content/safeMode.xhtml', '_blank', 'chrome,centerscreen,resizable=no'); """) diff --git a/testing/marionette/capture.js b/testing/marionette/capture.js index 526ef39586..25f6a9dd63 100644 --- a/testing/marionette/capture.js +++ b/testing/marionette/capture.js @@ -41,20 +41,15 @@ capture.Format = { * * @param {Node} node * The node to take a screenshot of. - * @param {Array.=} highlights - * Optional array of nodes, around which a border will be marked to - * highlight them in the screenshot. * * @return {HTMLCanvasElement} * The canvas element where the element has been painted on. */ -capture.element = function(node, highlights = []) { +capture.element = function(node) { let win = node.ownerGlobal; let rect = node.getBoundingClientRect(); - return capture.canvas(win, rect.left, rect.top, rect.width, rect.height, { - highlights, - }); + return capture.canvas(win, rect.left, rect.top, rect.width, rect.height); }; /** @@ -64,21 +59,17 @@ capture.element = function(node, highlights = []) { * @param {DOMWindow} win * The DOM window providing the document element to capture, * and the offsets for the viewport. - * @param {Array.=} highlights - * Optional array of nodes, around which a border will be marked to - * highlight them in the screenshot. * * @return {HTMLCanvasElement} * The canvas element where the viewport has been painted on. */ -capture.viewport = function(win, highlights = []) { +capture.viewport = function(win) { return capture.canvas( win, win.pageXOffset, win.pageYOffset, win.innerWidth, - win.innerHeight, - { highlights } + win.innerHeight ); }; @@ -96,9 +87,6 @@ capture.viewport = function(win, highlights = []) { * The width dimension of the rectangle to paint. * @param {number} height * The height dimension of the rectangle to paint. - * @param {Array.=} highlights - * Optional array of nodes, around which a border will be marked to - * highlight them in the screenshot. * @param {HTMLCanvasElement=} canvas * Optional canvas to reuse for the screenshot. * @param {number=} flags @@ -115,7 +103,7 @@ capture.canvas = function( top, width, height, - { highlights = [], canvas = null, flags = null } = {} + { canvas = null, flags = null } = {} ) { const scale = win.devicePixelRatio; @@ -149,49 +137,20 @@ capture.canvas = function( let ctx = canvas.getContext(CONTEXT_2D); if (flags === null) { flags = ctx.DRAWWINDOW_DRAW_CARET; - // TODO(ato): https://bugzil.la/1377335 - // - // Disabled in bug 1243415 for webplatform-test - // failures due to out of view elements. Needs - // https://github.com/w3c/web-platform-tests/issues/4383 fixed. - /* - ctx.DRAWWINDOW_DRAW_VIEW; - */ - // Bug 1009762 - Crash in [@ mozilla::gl::ReadPixelsIntoDataSurface] - /* - ctx.DRAWWINDOW_USE_WIDGET_LAYERS; - */ + + // Enabling those flags for drawWindow by default causes + // drawing failures. Wait until drawSnapshot is used and supports + // these flags (bug 1571341) + // ctx.DRAWWINDOW_DRAW_VIEW; + // ctx.DRAWWINDOW_USE_WIDGET_LAYERS; } ctx.scale(scale, scale); ctx.drawWindow(win, left, top, width, height, BG_COLOUR, flags); - if (highlights.length) { - ctx = capture.highlight_(ctx, highlights, top, left); - } return canvas; }; -capture.highlight_ = function(context, highlights, top = 0, left = 0) { - if (typeof highlights == "undefined") { - throw new InvalidArgumentError("Missing highlights"); - } - - context.lineWidth = "2"; - context.strokeStyle = "red"; - context.save(); - - for (let el of highlights) { - let rect = el.getBoundingClientRect(); - let oy = -top; - let ox = -left; - - context.strokeRect(rect.left + ox, rect.top + oy, rect.width, rect.height); - } - - return context; -}; - /** * Encode the contents of an HTMLCanvasElement to a Base64 encoded string. * diff --git a/testing/marionette/chrome/test.xul b/testing/marionette/chrome/test.xhtml similarity index 68% rename from testing/marionette/chrome/test.xul rename to testing/marionette/chrome/test.xhtml index a81b93f1ad..e8165bc574 100644 --- a/testing/marionette/chrome/test.xul +++ b/testing/marionette/chrome/test.xhtml @@ -14,14 +14,14 @@ - - - + + + - + diff --git a/testing/web-platform/tests/paint-timing/first-paint-bg-color.html b/testing/web-platform/tests/paint-timing/first-paint-bg-color.html index 46efb9e267..21271da4ce 100644 --- a/testing/web-platform/tests/paint-timing/first-paint-bg-color.html +++ b/testing/web-platform/tests/paint-timing/first-paint-bg-color.html @@ -11,6 +11,7 @@