Commit 4fd82ecf authored by Eugene Lazutkin's avatar Eugene Lazutkin

Added more tests for semi-public box functions. Refs #3121.

git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@9438 560b804f-0ae3-0310-86f3-f6aa0a117693
parent d6eeac9f
This file lists tests that need to be implemented or expanded. See ticket #3121
for changes related to things listed here.
Tests to add:
-------------
* html tests need to start exercising the semi-public methods
Tests to improve:
-----------------
* cookie tests don't seem to test expiry or date functions
......
......@@ -58,6 +58,26 @@
// FIXME: the 'correct' w is not 100 on Safari WebKit (2.0.4 [419.3]), the right-margin extends to the document edge
// "t.is(100, dojo.marginBox('sq100nopos').w);",
"t.is(100, dojo.marginBox('sq100nopos').h);",
"t.is(10, dojo._getPadExtents(dojo.byId('sq100ltpad10rbmargin10')).l);",
"t.is(10, dojo._getPadExtents(dojo.byId('sq100ltpad10rbmargin10')).t);",
"t.is(10, dojo._getPadExtents(dojo.byId('sq100ltpad10rbmargin10')).w);",
"t.is(10, dojo._getPadExtents(dojo.byId('sq100ltpad10rbmargin10')).h);",
"t.is(0, dojo._getMarginExtents(dojo.byId('sq100ltpad10rbmargin10')).l);",
"t.is(0, dojo._getMarginExtents(dojo.byId('sq100ltpad10rbmargin10')).t);",
"t.is(10, dojo._getMarginExtents(dojo.byId('sq100ltpad10rbmargin10')).w);",
"t.is(10, dojo._getMarginExtents(dojo.byId('sq100ltpad10rbmargin10')).h);",
"t.is(10, dojo._getBorderExtents(dojo.byId('sq100border10margin10pad10')).l);",
"t.is(10, dojo._getBorderExtents(dojo.byId('sq100border10margin10pad10')).t);",
"t.is(20, dojo._getBorderExtents(dojo.byId('sq100border10margin10pad10')).w);",
"t.is(20, dojo._getBorderExtents(dojo.byId('sq100border10margin10pad10')).h);",
"t.is(20, dojo._getPadBorderExtents(dojo.byId('sq100border10margin10pad10')).l);",
"t.is(20, dojo._getPadBorderExtents(dojo.byId('sq100border10margin10pad10')).t);",
"t.is(40, dojo._getPadBorderExtents(dojo.byId('sq100border10margin10pad10')).w);",
"t.is(40, dojo._getPadBorderExtents(dojo.byId('sq100border10margin10pad10')).h);",
function coordsBasic(t){
var pos = dojo.coords("sq100", false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment