Home | History | Annotate | Download | only in resources

Lines Matching refs:expected

125 function shouldEvaluateTo(actual, expected) {
127 // evaluated, as for shouldBe(). 'expected' may be any type and will be
129 if (expected == null) {
132 } else if (typeof expected == "undefined") {
134 } else if (typeof expected == "function") {
143 "'" + expected.toString().replace(/\n/g, "") + "'");
144 } else if (typeof expected == "object") {
145 shouldBeTrue(actual + " == '" + expected + "'");
146 } else if (typeof expected == "string") {
147 shouldBe(actual, expected);
148 } else if (typeof expected == "boolean") {
150 if (expected)
154 } else if (typeof expected == "number") {
155 shouldBe(actual, stringify(expected));
157 debug(expected + " is unknown type " + typeof expected);
158 shouldBeTrue(actual, "'" +expected.toString() + "'");