Lines Matching refs:expectedOffset

55     var expectedOffset = checkAttribute(output, node, "data-offset-x");
56 if (expectedOffset) {
57 if (isNaN(expectedOffset) || Math.abs(node.offsetLeft - expectedOffset) >= 1)
58 failures.push("Expected " + expectedOffset + " for offsetLeft, but got " + node.offsetLeft + ". ");
61 var expectedOffset = checkAttribute(output, node, "data-offset-y");
62 if (expectedOffset) {
63 if (isNaN(expectedOffset) || Math.abs(node.offsetTop - expectedOffset) >= 1)
64 failures.push("Expected " + expectedOffset + " for offsetTop, but got " + node.offsetTop + ". ");
67 var expectedOffset = checkAttribute(output, node, "data-positioned-offset-x");
68 if (expectedOffset) {
70 if (isNaN(expectedOffset) || Math.abs(actualOffset - expectedOffset) >= 1)
71 failures.push("Expected " + expectedOffset + " for getBoundingClientRect().left offset, but got " + actualOffset + ". ");
74 var expectedOffset = checkAttribute(output, node, "data-positioned-offset-y");
75 if (expectedOffset) {
77 if (isNaN(expectedOffset) || Math.abs(actualOffset - expectedOffset) >= 1)
78 failures.push("Expected " + expectedOffset + " for getBoundingClientRect().top offset, but got " + actualOffset + ". ");
105 var expectedOffset = checkAttribute(output, node, "data-total-x");
106 if (expectedOffset) {
108 if (isNaN(expectedOffset) || Math.abs(totalLeft - expectedOffset) >= 1)
109 failures.push("Expected " + expectedOffset + " for clientLeft+offsetLeft, but got " + totalLeft + ", clientLeft: " + node.clientLeft + ", offsetLeft: " + node.offsetLeft + ". ");
112 var expectedOffset = checkAttribute(output, node, "data-total-y");
113 if (expectedOffset) {
115 if (isNaN(expectedOffset) || Math.abs(totalTop - expectedOffset) >= 1)
116 failures.push("Expected " + expectedOffset + " for clientTop+offsetTop, but got " + totalTop + ", clientTop: " + node.clientTop + ", + offsetTop: " + node.offsetTop + ". ");