Skip to content

Unexpected behaviour of XHR Tests in WPT #5740

Closed

Description

@JayNakrani

While running Web Platform Tests, XHR tests are failing for some reason.

Here's the summary of wpt-tests on master.

Summary
=======

Ran 152982 tests (2185 parents, 150797 subtests)
Expected results: 152853
Unexpected results: 47 (FAIL: 28, PASS: 1, TIMEOUT: 18)
Skipped: 82

Unexpected Results
==================

/XMLHttpRequest/event-upload-progress-crossorigin.sub.htm
---------------------------------------------------------
TIMEOUT XMLHttpRequest: upload progress event for cross-origin requests
TIMEOUT [Parent]
/XMLHttpRequest/send-redirect-bogus-sync.htm
--------------------------------------------
FAIL XMLHttpRequest: send() - Redirects (bogus Location header; sync) (302: http://z)
FAIL XMLHttpRequest: send() - Redirects (bogus Location header; sync) (303: http://z)
/XMLHttpRequest/send-redirect-bogus.htm
---------------------------------------
FAIL XMLHttpRequest: send() - Redirects (bogus Location header) (302: http://example.not)
FAIL XMLHttpRequest: send() - Redirects (bogus Location header) (303: http://example.not)
/XMLHttpRequest/send-redirect-to-non-cors.htm
---------------------------------------------
FAIL XMLHttpRequest: send() - Redirect to cross-origin resource, not CORS-enabled (301)
FAIL XMLHttpRequest: send() - Redirect to cross-origin resource, not CORS-enabled (302)
FAIL XMLHttpRequest: send() - Redirect to cross-origin resource, not CORS-enabled (303)
FAIL XMLHttpRequest: send() - Redirect to cross-origin resource, not CORS-enabled (307)
/XMLHttpRequest/send-network-error-async-events.sub.htm
-------------------------------------------------------
TIMEOUT XmlHttpRequest: The send() method: Fire a 
TIMEOUT [Parent]
/XMLHttpRequest/send-non-same-origin.sub.htm
--------------------------------------------
TIMEOUT [Parent]
/XMLHttpRequest/timeout-cors-async.htm
--------------------------------------
PASS expected FAIL XMLHttpRequest: timeout event and cross-origin request
/dom/nodes/Document-getElementsByTagName.html
---------------------------------------------
FAIL Should be able to set expando shadowing a proto prop (item)
FAIL Should be able to set expando shadowing a proto prop (namedItem)
/dom/nodes/Element-getElementsByTagName.html
--------------------------------------------
FAIL Should be able to set expando shadowing a proto prop (item)
FAIL Should be able to set expando shadowing a proto prop (namedItem)
/html/dom/elements/global-attributes/custom-attrs.html
------------------------------------------------------
FAIL Setting an Element's dataset property should not interfere with namespaced attributes with same name
/html/dom/elements/global-attributes/dataset-set.html
-----------------------------------------------------
FAIL Setting element.dataset['foo'] should also change the value of element.getAttribute('data-foo')'
FAIL Setting element.dataset['fooBar'] should also change the value of element.getAttribute('data-foo-bar')'
FAIL Setting element.dataset['-'] should also change the value of element.getAttribute('data--')'
FAIL Setting element.dataset['Foo'] should also change the value of element.getAttribute('data--foo')'
FAIL Setting element.dataset['-Foo'] should also change the value of element.getAttribute('data---foo')'
FAIL Setting element.dataset[''] should also change the value of element.getAttribute('data-')'
FAIL Setting element.dataset['à'] should also change the value of element.getAttribute('data-à')'
/html/dom/reflection-grouping.html
----------------------------------
TIMEOUT [Parent]
/html/dom/reflection-embedded.html
----------------------------------
TIMEOUT [Parent]
/html/dom/reflection-forms.html
-------------------------------
TIMEOUT [Parent]
/html/dom/reflection-sections.html
----------------------------------
TIMEOUT [Parent]
/html/dom/reflection-tabular.html
---------------------------------
TIMEOUT [Parent]
/html/dom/reflection-text.html
------------------------------
TIMEOUT [Parent]
/html/semantics/embedded-content/the-canvas-element/security.drawImage.canvas.sub.html
--------------------------------------------------------------------------------------
TIMEOUT [Parent]
/html/semantics/embedded-content/the-canvas-element/security.drawImage.image.sub.html
-------------------------------------------------------------------------------------
TIMEOUT [Parent]
/html/semantics/embedded-content/the-canvas-element/security.pattern.canvas.fillStyle.sub.html
----------------------------------------------------------------------------------------------
TIMEOUT [Parent]
/html/semantics/embedded-content/the-canvas-element/security.pattern.canvas.strokeStyle.sub.html
------------------------------------------------------------------------------------------------
TIMEOUT [Parent]
/html/semantics/embedded-content/the-canvas-element/security.reset.sub.html
---------------------------------------------------------------------------
TIMEOUT [Parent]
/html/webappapis/scripting/processing-model-2/compile-error-cross-origin.html
-----------------------------------------------------------------------------
TIMEOUT [Parent]
/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin.html
-----------------------------------------------------------------------------
TIMEOUT [Parent]
/webstorage/setitem.html
------------------------
FAIL localStorage[]
FAIL localStorage[] update
FAIL localStorage[undefined]
FAIL localStorage[null]
FAIL sessionStorage[]
FAIL sessionStorage[] update
FAIL sessionStorage[undefined]
FAIL sessionStorage[null]
16:15.81 LOG: MainThread INFO Closing logging queue
16:15.81 LOG: MainThread INFO queue closed

Activity

  1. JayNakrani commented on Apr 18, 2015

    @JayNakrani
    ContributorAuthor

    Here is the detailed wpt-test output only for /XMLHttpRequest/send-redirect-bogus-sync.htm

    XMLHttpRequest: send() - Redirects (bogus Location header; sync) (302: http://z)
    --------------------------------------------------------------------------------
    Expected PASS, got FAIL
    assert_throws: function "function () { client.send(null) }" did not throw
    @http://localhost:8000/XMLHttpRequest/send-redirect-bogus-sync.htm:6
    Test.step@http://localhost:8000/resources/testharness.js:1295
    test@http://localhost:8000/resources/testharness.js:428
    redirect@http://localhost:8000/XMLHttpRequest/send-redirect-bogus-sync.htm:7
    @http://localhost:8000/XMLHttpRequest/send-redirect-bogus-sync.htm:10
    
  2. changed the title [-]Unexepcted behaviour of XHR Tests in WPT[/-] [+]Unexpected behaviour of XHR Tests in WPT[/+] on Jun 9, 2015
  3. added
    I-intermittent
    on Aug 24, 2015
  4. removed
    I-intermittent
    on Sep 8, 2015
  5. jdm commented on Sep 8, 2015

    @jdm
    Member

    FTR, I don't think this is a good issue to use to track intermittent failures in various XHR tests. This isn't intermittent for the original reporter.

  6. nox commented on Sep 30, 2017

    @nox
    Contributor

    Closing for inactivity. The XHR stack was improved a lot since back then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions