diff -r 000000000000 -r 40c8f766c9b8 src/cm/media/js/lib/yui/yui_3.0.0b1/api/Assert.ComparisonFailure.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.0.0b1/api/Assert.ComparisonFailure.html Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,380 @@ + + + + + API: test Assert.ComparisonFailure (YUI Library) + + + + + + + + + + +
+
+

Yahoo! UI Library

+

test  3.0.0b1

+ Yahoo! UI Library + > test + > Assert.ComparisonFailure + +
+
+ Search: +
+   +
+
+
+
+ +
+
+
+
+
+ Filters + + + +
+
+ +

+ + + + + Class Assert.ComparisonFailure + + - extends Assert.Error + + +

+ + + + + +
+ ComparisonFailure is subclass of Error that is thrown whenever +a comparison between two values fails. It provides mechanisms to retrieve +both the expected and actual value. +
+ +
+

Constructor

+
+
+ Assert.ComparisonFailure + + ( + + + + message + + , + expected + + , + actual + ) + +
+
+
Parameters:
+
+ message + <String> + + The message to display when the error occurs. +
+
+ expected + <Object> + + The expected value. +
+
+ actual + <Object> + + The actual value that caused the assertion to fail. +
+
+ + +
+
+
+
+ +
+
+

Properties

+
+
+

actual + - Object +

+
+
+ The actual value. +
+
+ + + + +
+
+
+

expected + - Object +

+
+
+ The expected value. +
+
+ + + + +
+
+
+

name + - String +

+
+
+ The name of the error that occurred. +
+
+ + + + +
+
+
+
+ +
+
+

Properties inherited from Assert.Error:

+
+ + + + name + + + +
+
+
+
+ +
+
+

Methods

+
+
+

+ toString

+
+ + + + + String + toString + ( + ) + + +
+ Returns a fully formatted error for an assertion failure. This message +provides information about the expected and actual values. +
+ +
+ + +
+
Returns: + + String +
+
A string describing the error.
+
+ + + + +
+ +
+
+
+
+
+ +
+
+

Methods inherited from Assert.Error:

+
+ + + getMessage, + + + toString, + + + valueOf + + +
+
+
+
+ +
+ + +
+ +
+ +
+ +
+
+ +
+
+
+ Copyright © 2009 Yahoo! Inc. All rights reserved. +
+
+ + +