/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
* Youcanjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 26
:0java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
date(,)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
}
TEST(DOM_Quota_Date, FromTimestamp)
{ const Date date = Date::FromTimestamp(PR_Now());
ASSERT_GT(date.ToDays(), 0);
}
TEST(DOM_Quota_Date, Today)
{ const Date date = Date::Today();
ASSERT_GT(date.ToDays(), 0);
}
TEST(DOM_Quota_Date, ComparisonOperators)
{ const Date dateA = Date::FromDays(100); const Date dateB = Date::FromDays(200); const Date dateC = Date::FromDays(200); const Date dateD = Date::FromDays(300);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.