Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4813 closed defect (fixed)

FF: doh failures in _Templated

Reported by: Adam Peller Owned by: Adam Peller
Priority: high Milestone: 1.0
Component: Dijit Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

run on FF2/Mac

GROUP "dijit.tests._Templated" has 1 test to run
 7 tests to run in 1 groups
 ------------------------------------------------------------
 GROUP "dijit.tests._Templated.html" has 7 tests to run
     _AssertFailure: http://download.dojotoolkit.org/release-1.0.0beta/dojo-release-1.0.0beta/release/dojo-release-1.0.0beta/dojo/dojo.js:133 doh._AssertFailure: assertEqual() failed: expected |hello > world| but got |hello > world|
 doh._AssertFailure
     ERROR IN:
  (function simple(t) {var widget = new SimpleTemplate;var wrapper = dojo.byId("simpleWrapper");wrapper.appendChild(widget.domNode);t.is("hello > world", wrapper.innerHTML.toLowerCase());})
 FAILED test: ../../dijit/tests/_Templated.html::dijit.tests._Templated.html::simple
     _AssertFailure: http://download.dojotoolkit.org/release-1.0.0beta/dojo-release-1.0.0beta/release/dojo-release-1.0.0beta/dojo/dojo.js:133 doh._AssertFailure: assertEqual() failed: expected |hello ><"' world| but got |hello ><"' world|
 doh._AssertFailure
     ERROR IN:
  (function variables(t) {var widget = new VariableTemplate;var wrapper = dojo.byId("variables1Wrapper");wrapper.appendChild(widget.domNode);t.is("hello ><"' world", wrapper.innerHTML.toLowerCase());})
 FAILED test: ../../dijit/tests/_Templated.html::dijit.tests._Templated.html::variables
     _AssertFailure: http://download.dojotoolkit.org/release-1.0.0beta/dojo-release-1.0.0beta/release/dojo-release-1.0.0beta/dojo/dojo.js:133 doh._AssertFailure: assertEqual() failed: expected || but got ||
 doh._AssertFailure
     ERROR IN:
  (function variables2(t) {var widget = new VariableTemplate({id:"myid", num:-5, text:""});var wrapper = dojo.byId("variables2Wrapper");wrapper.appendChild(widget.domNode);t.is("", wrapper.innerHTML.toLowerCase());})
 FAILED test: ../../dijit/tests/_Templated.html::dijit.tests._Templated.html::variables2
 Error: Tried to register widget with id==foo but that id is already registered
     ERROR IN:
  (function table(t) {var widget = new TableRowTemplate({text:"hello"});var wrapper = dojo.byId("trWrapper");wrapper.appendChild(widget.domNode);var actual = wrapper.innerHTML.toLowerCase().replace(/
/g, "").replace(/
/g, "");t.is("hello", actual);})
 FAILED test: ../../dijit/tests/_Templated.html::dijit.tests._Templated.html::table
 PASSED test: ../../dijit/tests/_Templated.html::dijit.tests._Templated.html::illegal
 PASSED test: ../../dijit/tests/_Templated.html::dijit.tests._Templated.html::attachPoint
 PASSED test: ../../dijit/tests/_Templated.html::dijit.tests._Templated.html::attachEvent
 PASSED test: ../../dijit/tests/_Templated.html

Attachments (1)

4813.patch (2.2 KB) - added by Douglas Hays 12 years ago.
needed to add id to assertion string since its now added by the attributemap function

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by bill

Owner: set to Adam Peller

Changed 12 years ago by Douglas Hays

Attachment: 4813.patch added

needed to add id to assertion string since its now added by the attributemap function

comment:2 Changed 12 years ago by Adam Peller

(In [11310]) Add test case for _Widget.attributeMap. Refs #4813

comment:3 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [11317]) Use unique widget ids so there's no conflict. Fixes #4813

comment:4 Changed 12 years ago by bill

(In [11392]) Comment out non-deterministic (is that the right word?) check. Shouldn't be accessing cssText, but rather maybe checking individual properties like border-left-color Refs #4813, #5011

Note: See TracTickets for help on using tickets.