tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2399) SeleniumTestCase.waitForAjaxRequestsToComplete() not working when using Prototype
Date Sat, 11 Oct 2014 00:44:35 GMT

    [ https://issues.apache.org/jira/browse/TAP5-2399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14167882#comment-14167882
] 

Hudson commented on TAP5-2399:
------------------------------

SUCCESS: Integrated in tapestry-trunk-freestyle #1339 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/1339/])
TAP5-2399: SeleniumTestCase.waitForAjaxRequestsToComplete() not working when using Prototype
(hlship: rev f6de4c4ec497b902dfcfe1b591ecae8bc38c65ec)
* tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee
* tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
* tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java


> SeleniumTestCase.waitForAjaxRequestsToComplete() not working when using Prototype
> ---------------------------------------------------------------------------------
>
>                 Key: TAP5-2399
>                 URL: https://issues.apache.org/jira/browse/TAP5-2399
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Felix Scheffer
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.4
>
>
> waitForAjaxRequestsToComplete() waits until <body> has an attribute 
> {code}
> data-ajax-active=false
> {code}
> which will NEVER be the case when Prototype is being used.
> When an attribute's value is false, Prototype removes that attribute from the tag (instead
of writing out the value). 
> from prototype.js, line 2269:
> {code}
> writeAttribute: function(element, name, value) {
>       ...
>       if (value === false || value === null)
>         element.removeAttribute(name);
>       else if (value === true)
>         element.setAttribute(name, name);
>       else element.setAttribute(name, value);
>       ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message