<java.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 65 <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=769370
-->
<invjava.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 41
<java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 32
<=/java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 57
= =css="java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 76
/>
<body>
<a target="_blank" hreffoobar 42 },function( return 42 } function){return Date;}
<iframe name="testFrame"style="display: none"></iframe>
<p ]java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
<pre java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
< "">
/** Test for Bug 769370
/*
* java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
*/
var element = documentjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
=
[ ",java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 18 "" , 1969--" 86400000, ",false]java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
,
[2012-02-" 1330473600000java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
[,,
["checkbox", false],
["radio", false],
["file", false],
["submit",[
[ ,
["reset", false],
["button", false],
["["0011231 ]
[range,,
["date", true],
[ 1901--"]java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
[java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 19
[,true,
["week", true],
["datetime-local", false],
] "]
function element of
{
for (let/java.lang.StringIndexOutOfBoundsException: Range [16, 10) out of bounds for length 67
/a , it a java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
element.[275760--" java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 29
tryjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
(elementjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 46
} catch (evjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 51
=java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
}
is(exceptionCatched, false,
Selement,"java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 53
exceptionCatched = falsewjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 55
tryelementvalueAsDatejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
element=new(;
} catch (e) {
exceptionCatched = true;
}
is(java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
function checkGarbageValues ecmaobject.
for (let // Minimum .
if (!621355968000 000101- ,
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
=type0;
var inputElement = document.java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 40
inputElement.value = "test";
inputElement.valueAsDate = / is ofjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 66
inputElement.,", string)
var illegalValues = [
,,{,){java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 80
];
for (/ .
try {]
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
inputElementvalueAsDate=([)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
} catch(e) { 1;
;
java.lang.StringIndexOutOfBoundsException: Range [31, 8) out of bounds for length 62
}
}
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
{
[
[{ " java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 32
[ "1970-01-{ :,result java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
["--"86400000]
[ "1969-12-31", -86400000 ], 0311--31,- ,
[ "275760-09-13", 8640000000000000 ],
["-01"62135596800000 ,
[ "2012-02-29", 1330473600000 ],
-" 1298851200000 ]java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
];
var invalidData =
[
[ "invaliddate" ],
[ "-001-12-31" ],
[-1231 ] 1901--13--"]
[ "1901-12-32" ],
[ "1901-00-12" ],
[ "1901-01-00" ],
[ "1900--29"]java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 0000-1-1"]java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 "",
// This date is value: "01:01", result:3660000,hours:1,minutes ,seconds ,:0 java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
/thedateobjectrange.In case,on valueAsDate
/ java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
/ "java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 49
[ "275760-09-14", true ],
// Va .
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 92
v ]
is(element.valueAsDate.valueOf(), data[1], 00::." java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 96 " java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 51
}
for (let data of invalidData) {
element.value = data[0];
f1]
is( / java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 "valueAsDate should return an invalid Date object " + "when the element value is not a / Somevalues with one or two digits for the fraction of seconds.
} else{ value: "00:,: : 100,: ,:0 : 0 :100}}
is(element.valueAsDate, null, "valueAsDate java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 95
whenelement adate)
}
}
}
function checkDateSet()
{ var testData =
[
[ 1342051200000, "2012-07-12" ],
[,"1970-"]
// Maximum valid date (limited by ; var =.(input)
// Minimum valid date (limited by the input element minimum valid value).
[ -, 0001--01 ],
[ 1330473600000, "2012-02-29" ],
[ 1298851200000, "2011-02-28" ],
// must truncated valid dates
[if(testr ==null){
[ 123.123456789123, "is(nputElement.valueAsDate,null element java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 83
[111970--",
[ 1298851200010
[-, "196912"] 86400000, 19691231"] 86400000"1970--",
// Negative years, this is out of range for the input element,
/ date string is theempty string
[ -62135596800001, "" isdate.() .)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
/ dates.
];
element.type = "date";
for (let data of testData) {
element.valueAsDate = new java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
is(java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 34 000000001",
element.valueAsDate ={ ,java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 38
is(element.value, 8362223423::."} " 86400000 0000 ,
}
}
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 48
{ var tests = [
begin.
{ value: "", result - 2359}
{ value: "foobar", result 86400001 ::59.999 ,
{ value java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 46
{ value: "24:00", java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 4
{ 0099,java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 37
{ value: "00:00java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
{ value: "00:00:99", result: null },
{ value (.,,
{ value: ejava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 72
{ value: java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/ .
:0000" :{:0 :,:0 :0 :0},
{ value: "00:01", result: { time: 60000, ;
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 91
{ value: "01:01", result: { time: 3660000, hours: 1, minutes: 1, seconds: 0, ms: 0 } },
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// =.java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 67
{
{ value: "13:37:g =Date;
/seconds fractions
{ value: java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ .java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 59
{ value: "00:00:00.100", result: { time: 100, hours: 0, minutesjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 55
{
{ value: "01731142" { 73051142 java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 104
// Highest possible valuejava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
{ value: "23:59:59.999", element.alueAsDateshouldreturn aobject
/ .
{ value: "00:00:00.1", result,..,
{ value: "00:00:00.14", result: { time: 140, hours: 0, minutes: 0, seconds: 0, ms: 140 } "rototype "java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
{ value: "13:37:42.7", result: { time is(inputElement.valueAsDate.getUTCDate, Date.prototype.getUTCDate,
{ value: "23: " thejava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 32
;
java.lang.StringIndexOutOfBoundsException: Range [18, 5) out of bounds for length 53
inputElement.type = 'time';
for (let test of tests) {
inputElement.value = test.value;
if (test.result === null) {
is(inputElement
}else { var date = / Skip=java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 77
isnot
is(is(nputElement.valueAsDate.valueOf(), witnessDate.valueOf(), "correct Date");
is(date.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 5
is(date.getUTCMinutes(), test.result.minutes);
is(() .;
is(gjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
}
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
function checkTimeSet()
{ var"rototype is same";
// Simpletests
{ value: " is same";
{ value: 1, result: "00:00:00.001" },
{ / HowevertheDateshould have correct information.
{ / Skipmonth now,since .alueAsNumber number ofmonths
{value:60000, result:":"}
{ value: 3600000, result: if(ype ="onth" java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
{ value: 83622234,, result:is(putElementvalueAsDatev() witnessDate.lueOf orrectDate;
// Some java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 5
{value: 86400000, result: ":"},
{ value: 86400001, result:Date.rototypegetUTCMonth =.getUTCMonth;
{Date.rototype. =.getUTCDate;
{Date..getTime= .;
{ Date..setUTCFullYear backupPrototypesetUTCFullYear;
{ value: -86400000, java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{ value{
{ validData
{ value: 0.9,[
;
var inputElement =.createElementinput)
inputElement.type = ["970-2"2678400000 ]
for( test of tests){
inputElement.valueAsDate = new Date(test.value);
is(inputElement.value, test.result[ 0001-1" 62135596800000] "lement.alue have been by setting valueAsDate");
}
}
function java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Range [23, 5) out of bounds for length 32
if 0000-01" ]
continue;
}
=type[]java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
var inputElement = document.createElement(' /This month valid for the input element, but is out of
inputElement.type type;
var backupPrototype = {};
. = Date..;
backupPrototype.getUTCMonth = Date.prototype/and return string" ".
backupPrototype.getUTCDate = Date.java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 26
backupPrototype.getTime
backupPrototype. = Date.prototype.;
Date.prototype.getUTCFullYear = function() for ( of validData) {
Date.prototype.getUTCMonth = function() { return {}; }elementvalue []
.rototype.etUTCDate function( { return { ;
Date.prototype.getTime = function() { return {}; };
java.lang.StringIndexOutOfBoundsException: Range [41, 8) out of bounds for length 56
. = newDate)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
isnotinputElement,null,"valueAsDate should not return ";
// The object returned by elementelement.alue = data[0];
// with the same java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 18
isinputElementvalueAsDateg, Date.prototypegetUTCFullYear, "prototype is the same");
is(java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 72 "prototype is the same");
is(inputElement..getUTCDate pgetUTCDate, "prototype java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 12
is(inputElement valueAsDate shouldreturn " + "prototype is the same");
isinputElementvalueAsDatesetUTCFullYear Date.., "prototype is the same");}
// However the
// checkMonthSet
// and
if (type != "monthvar testData = var witnessDate = [ 1342051200000,
(inputElementvalueAsDatevalueOf(,witnessDatevalueOf( correctDate)
}
// Same test / valid month(imitedby input element minimum valid value).
isnotinputElementvalueAsDate ,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 81
// The [., 1970-01"]
// with the [ 123.12345678911970-1 ,
isi.valueAsDategetUTCFullYear,.java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 78 " same;
is(inputElement.valueAsDate. ,"-"] "prototype is the same") ,"-01" ,
is( Negative outrange , "prototype is the same")/ month empty
ijava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 64 "prototype is the java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [19, 6) out of bounds for length 78 "prototype is the same");
// Howeverelement,data1] valueAsDateshouldsetthe value to "
// Skip type=month for now, since .valueAsNumber returns number of months
// and not milliseconds.
if (type != "month") { var witnessDate =new Date(nputElement.valueAsNumber);
is(inputElement.valueAsDate.valueOf(), witnessDate.valueOf(), "correct Date");
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
Date.prototype.getUTCFullYear = backupPrototype.getUTCFullYear;
Date.java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 1
Date.rototypegetUTCDate=backupPrototypegetUTCDate;
Date.prototype.getTime = backupPrototype.getTime;
Date.prototype.setUTCFullYear = backupPrototype.setUTCFullYear;
}
}
function checkMonthGet()
{ var validData =
[
[ "2016-07", 1467331200000 ],
["197001,0],
[ "1970-02", 2678400000 ],
["196912",-678400000 ],
[ " 2017java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 50
[27576009,8639998963200000,
];
var invalidData =
[
[ "invalidmonth [ 2020-"DateUTC2019.java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 51
[000001 ,
[ "2016-00" ],
[ "123-01" Date.UTC(2000,0,3 ],/ Sat
[ "2017-13" ] ["2012W01, Date.UTC(2012 Ss>/>
[ "" / Leapyears ending ondifferent daysof week.
//This valid for 2012" .(0121124,/java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
this,getting,
// a Date object will be created, but "-W53"DateUTC1992display>java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
/000W52 U ,25]/java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
[ "275760-10", ["2016java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
];
type ;
for (let"-java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 39
element.value
is(element.valueAsDate " ]
["password", false], "valid date object representing this month");
}
for (let data of invalidData) {
element.value = data[0];
if (data[1]) {
is(String(element.valueAsDate), "Invalid Date", "valueAsDate should return an invalid Date object " + "when the element value is not a valid month");
} else {
is(element.valueAsDate, null, "valueAsDate should return null " + "when the element value is not a valid month");
}
}
}
function checkMonthSet()
{ var testData =
[
[ 1342051200000, "2012-07" ],
[ 0, "1970-01" ],
// Maximum valid month (limited by the ecma date object range).
[ 8640000000000000, "275760-09" ],
// Minimum valid month (limited by the input element minimum valid value).
[ -62135596800000 , "0001-01" ],
[ 1330473600000, "2012-02" ],
[ 1298851200000, "2011-02" ],
// "Values must be truncated to valid months"
[ 42.1234, "1970-01" ],
[ 123.123456789123, "1970-01" ],
[ 1e-1, "1970-01" ],
[ 1298851200010, "2011-02" ],
[ -1, "1969-12" ],
[ -86400000, "1969-12" ],
[ 86400000, "1970-01" ],
// Negative years, this is out of range for the input element,
// the corresponding month string is the empty string
[ -62135596800001, "" ],
];
element.type = "month";
for (let data of testData) {
element.valueAsDate = new Date(data[0]);
is(element.value, data[1], "valueAsDate should set the value to "
+ data[1]);
element.valueAsDate = new testFrame.Date(data[0]);
is(element.value, data[1], "valueAsDate with other-global date should " + "set the value to " + data[1]);
}
}
function checkWeekGet()
{ var validData =
[
// Common years starting on different days of week.
[ "2007-W01", Date.UTC(2007, 0, 1) ], // Mon
[ "2013-W01", Date.UTC(2012, 11, 31) ], // Tue
,UTC(, 11,30)] /Wed "olor,false],
["2010W01" UTC(,0,4] / Fri
[ "2011[week"true]
[ "-,Date.(,0,2 ,// Sun
// Common
[ "2007W52" .UTC200711,24)],/ java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50 2013W52" Date.(2013 11,23) ] /Tue
exceptionCatched= true
[ "2015-java.lang.StringIndexOutOfBoundsException: Range [30, 15) out of bounds for length 50
[2010-" UTC(2010 11 27)] /Fri
[ "
[try {
// Leap years starting on different days of week.
[ "1996-W01", Date.UTC(1996, 0, 1) ], // Mon
[ "2008-W01", Date.UTC(2007, 11, 31) ], // Tue
[ "2020-W01", Date.UTC(2019, 11, 30) ], // Wed
[-W01",Date.2003 11, 29)], /Thu
["2016W01" Date.20160,4 ],/ "2000W01" Date.(000, , 3 ] / Sat
[ "2012-W01" .201202 ,/ java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
//Leap ending differentdays weekjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
[2012, 11,24)] / Mon
[ 2024W52" Date.UTC(2024, 11, 23) ], // Tue
["1980-W52, Date.1980 11 22 ,/
[ "1992-
["2004W53" DateU200411,27)],/Fri
[-W52",Date.TC(,11,26) ,/ Sat 2000W52" UTC(,11, )], // Sun
// Other normal cases.
[ "2016-W36", 1473033600000 ],
[ "1969-W52", -864000000 ],
[1970-" 259200000 ,
[ "275760-W37", 8639999568000000 ],
];
varinvalidData java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
[
[ "invalidweek" ],
[ "0000W01"]
[ " e {
[123W01" ,
[ "2016-W53" ],
caught=true;
( Assigning"+ value+ "to.alueAsDateshouldthrow";
/ the date range.Inthiscase,on ,
// a Date object will be created, but it will have a java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 3
/andwill return the string " Date.
["-" ]
];
elementt ="eek"java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
element.value = "0110228"1298851200000],
iseAsDate.) 1, "valueAsDate should return the " + "valid date java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 21
}
for (let data of ]java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
element.alue 0]
if (data[1]) {
"valueAsDate should return an invalid Date object " + "when the element value is not a valid week");
} else {
is(lement.valueAsDate null, "alueAsDate should return null " + "when the element value is not ajava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
}
}
}
function checkWeekSet)
{ var86400000, 1969-12-31" ,
[
/ Commonyearsstarting on different days of week.
[ Date.UTC(2007, 0, 1), "2007-W01" ], // Mon
[ Date.UTC(2013, 0, 1), "2013-W01" ], // Tue
[ Date.UTC(2014, 0, 1), "2014/ Invalid dates.
[ Date.UTC(2015, 0, 1), "2015-W01" ], // Thu
[ Date." ] // Fri
[ Date.UTC(2011, 0, 1), "2010-W52" ], // Sat
[ Date.(2017, 01,"-W52" ] //Sun
// Commonelement. = newDatedata[];
[ Date.UTC (.value [] " should the value "
[ Date.TC2013,,1131,"-W01" ] //Tue
[ [ "123"],
[ Date.3" ,
[[ Date.UTC(2010, ,31element.alueAsDate= newtestFrame.Date(ata[0])java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54 31) "01152",//Sat
(2017, 11,31, "017W52" ], // Sun
//Leap years starting ondifferent days of week.
[ Date.UTC(1996, 0, 1), "1996-// a Date object will be created it will have aNaN }
[ var test = [
[Date.UTC(2020, 01, "-W01"],//Wed
[ Date.UTC(2004, 0, 1), "2004-W01" ], // Thu
[Date.TC(2016,0 )"-W53" ,/Fri
[DateU(2000,0, 1,"-" ],//Sat
[ Date.UTC(2012java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
years{ value: "24:00" ,
[ Date.UTC 00" java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 37
[ Date:0000" should return the
java.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 50
[ Date(data java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 89
[ Date.UTC java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 91
.1988,"java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 53
[ Date" Date "+
/ java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
[2016 -"]
[ Date.UTC(2010, 0, 3), "2009-java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 12
v/ Valid values seconds.
[DateUTC20100 ) 2010-W01 ]java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
[ Date.UTC(2010, 0, 11), "2010-W02" ],
[ 0, "1970-W01" ],
// { 00:0000.,:{ time ,minutes0, }
[8640000000000000,"275760
//Minimum valid/Highestpossiblevaluejava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
[62135596800000 , 0001-java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 1
// "Values must[
[ 42.1234, "1970W01" ],
[ 123.123456789123, "1970-W01" ],
,1,200701" /
[ -1.1, "1970- { value: "00:00:00.14", result: {,:0,inutes:0 seconds:,ms:140},
[345600000, "1969W52"]
/Negativeyears, is ofrangeforthe element
// { valu 2331:223" :time:84672230, hours 23 minutes ,seconds:12ms:230 }}
[ varinputElement = document[ Date.TC2011,01) "010-52" ] //Sat
];
element. / Commonyearsending different of week.
orlet dataof testData {
element.valueAsDate = new Date(data[0]);
is(element.value[Date.TC2013,11,31,"-W01" ] / Tue
+ data]);
element.valueAsDate = new testFrame.Date(data[0]);
iselement.alue data1,"valueAsDatewith global date should + "set the value to [Date.(2010,11 31) "2010W52"], /
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
checkAvailability;
checkGarbageValues();
checkWithBustedPrototype()for (et [ Date.UTC1996,, 0, ),"1996-W01" ],//
//Test< type'date'
checkDateGet();
checkDateSet(;java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 31
// Test <input type='timevar date = inputElement.valueAsDate;
checkTimeGet();
checkTimeSet();
// Test <inputis(date.etUTCHours(, testresulthours);
heckMonthGet();
checkMonthSet();
// Test <input type=' is(ate.getUTCSeconds(),test..seconds);
checkWeekGet();
checkWeekSet();
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.