Преглед на файлове

[1.11>master] [MERGE #6484 @pleath] Eliminate timezone sensitivities in UT's

Merge pull request #6484 from pleath:timezone-1.11

In some tests, convert Date objects to date strings before displaying them to eliminate timezone sensitivity. In other tests, prevent Microbuild from running the tests to eliminate noise due to timezone.
Paul Leathers преди 5 години
родител
ревизия
2422941b37

+ 11 - 11
test/Date/rlexe.xml

@@ -4,7 +4,7 @@
     <default>
       <files>DateCtr.js</files>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_jenkins</tags>
+      <tags>exclude_jenkins,slow</tags>
     </default>
   </test>
   <test>
@@ -13,7 +13,7 @@
       <baseline>DateGetSet.baseline</baseline>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
       <!-- XPLAT doesn't provide expected DST info for year 35816 -->
-      <tags>exclude_jenkins,exclude_xplat</tags>
+      <tags>exclude_jenkins,exclude_xplat,slow</tags>
     </default>
   </test>
   <test>
@@ -21,7 +21,7 @@
       <files>DateParse.js</files>
       <baseline>DateParse_es5.baseline</baseline>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_jenkins</tags>
+      <tags>slow,exclude_jenkins</tags>
     </default>
   </test>
   <test>
@@ -30,7 +30,7 @@
       <baseline>DateParse2.v5.baseline</baseline>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
       <!-- xplat DST info for BC years don't mach to ones for Windows. Internally trying to match them is very expensive -->
-      <tags>exclude_jenkins,exclude_xplat</tags>
+      <tags>slow,exclude_jenkins,exclude_xplat</tags>
     </default>
   </test>
   <test>
@@ -68,7 +68,7 @@
       <baseline>Conversions.win8.baseline</baseline>
       <compile-flags>-Intl-</compile-flags>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_win7,exclude_winBlue,exclude_snap,exclude_jenkins,exclude_xplat</tags>
+      <tags>exclude_win7,exclude_winBlue,exclude_snap,exclude_jenkins,exclude_xplat,slow</tags>
     </default>
   </test>
   <test>
@@ -77,7 +77,7 @@
       <baseline>Conversions.baseline</baseline>
       <compile-flags>-Intl-</compile-flags>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_win7,exclude_win8,exclude_snap,exclude_jenkins,exclude_xplat</tags>
+      <tags>exclude_win7,exclude_win8,exclude_snap,exclude_jenkins,exclude_xplat,slow</tags>
     </default>
   </test>
   <test>
@@ -91,7 +91,7 @@
     <default>
       <files>formatting_xplat.js</files>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_jenkins,exclude_windows</tags>
+      <tags>slow,exclude_jenkins,exclude_windows</tags>
     </default>
   </test>
   <test>
@@ -102,7 +102,7 @@
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
       <!-- on DST pass Win OldDateAPI jumps back to 01:00 after 01:59 -->
       <!-- todo: Do not force OLDDateAPI ? -->
-      <tags>exclude_jenkins,exclude_xplat</tags>
+      <tags>slow,exclude_jenkins,exclude_xplat</tags>
     </default>
     <condition order="1" type="include">
       <os>win8</os>
@@ -141,7 +141,7 @@
       <files>toStringAndToUTCStringYearPadding.js</files>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
       <!-- xplat tz info for BC != Windows tz info for BC -->
-      <tags>exclude_jenkins,exclude_xplat</tags>
+      <tags>slow,exclude_jenkins,exclude_xplat</tags>
       <compile-flags>-args summary -endargs</compile-flags>
     </default>
   </test>
@@ -165,7 +165,7 @@
       <baseline>parseValidISO.baseline</baseline>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
       <!-- xplat tz info for BC != Windows tz info for BC -->
-      <tags>exclude_jenkins,exclude_xplat</tags>
+      <tags>slow,exclude_jenkins,exclude_xplat</tags>
       <compile-flags>-args summary -endargs</compile-flags>
     </default>
   </test>
@@ -175,7 +175,7 @@
       <baseline>parseInvalidISO.baseline</baseline>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
       <!-- OSX doesn't provide expected DST for minus years -->
-      <tags>exclude_jenkins,exclude_xplat</tags>
+      <tags>slow,exclude_jenkins,exclude_xplat</tags>
     </default>
   </test>
 </regress-exe>

+ 1 - 1
test/GlobalFunctions/rlexe.xml

@@ -60,7 +60,7 @@
       <files>InternalToString.js</files>
       <baseline>InternalToString.baseline</baseline>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_jenkins</tags>
+      <tags>exclude_jenkins,slow</tags>
     </default>
   </test>
   <test>

+ 1 - 1
test/JSON/rlexe.xml

@@ -11,7 +11,7 @@
       <files>jx2.js</files>
       <baseline>jx2.baseline</baseline>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_jenkins</tags>
+      <tags>exclude_jenkins,slow</tags>
     </default>
   </test>
   <test>

Файловите разлики са ограничени, защото са твърде много
+ 268 - 268
test/Operators/equals.baseline


+ 2 - 2
test/Operators/equals.js

@@ -58,7 +58,7 @@ var all = [ undefined, null,
 
 for (var i=0; i<all.length; ++i) {
     for (var j=0; j<all.length; ++j) {
-        write("a["+i+"]("+all[i]+") == a["+j+"]("+all[j]+") : " + (all[i] == all[j]));
-        write("a["+i+"]("+all[i]+") != a["+j+"]("+all[j]+") : " + (all[i] != all[j]));
+        write("a["+i+"]("+ ((all[i] instanceof Date) ? all[i].toDateString() : all[i]) +") == a["+j+"]("+ ((all[j] instanceof Date) ? all[j].toDateString() : all[j])+") : " + (all[i] == all[j]));
+        write("a["+i+"]("+ ((all[i] instanceof Date) ? all[i].toDateString() : all[i]) +") != a["+j+"]("+ ((all[j] instanceof Date) ? all[j].toDateString() : all[j])+") : " + (all[i] != all[j]));
     }
 }

+ 0 - 2
test/Operators/rlexe.xml

@@ -60,8 +60,6 @@
     <default>
       <files>equals.js</files>
       <baseline>equals.baseline</baseline>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_jenkins</tags>
     </default>
   </test>
   <test>

+ 1 - 1
test/VT_DATE/rlexe.xml

@@ -5,7 +5,7 @@
       <files>getvardate.js</files>
       <baseline>getVarDate.baseline</baseline>
       <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_jenkins</tags>
+      <tags>exclude_jenkins,slow</tags>
     </default>
   </test>
 </regress-exe>

+ 6 - 6
test/fieldopts/objtypespec-newobj.2.baseline

@@ -79,14 +79,14 @@ o = [object Object] ({ a: 1, b: 2, c: 3, p: 1001, q: 1002, x: 4, y: 5 })
 o = [object Object] ({ a: 1, b: 2, c: 3, p: 1001, q: 1002, x: 4, y: 5 })
 
 Test 41:
-o = Tue Dec 03 2013 00:00:00 GMT-0800 (Pacific Standard Time) ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
-o = Tue Dec 03 2013 00:00:00 GMT-0800 (Pacific Standard Time) ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
-o = Tue Dec 03 2013 00:00:00 GMT-0800 (Pacific Standard Time) ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
+o = Tue Dec 03 2013 ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
+o = Tue Dec 03 2013 ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
+o = Tue Dec 03 2013 ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
 
 Test 42:
-o = Tue Dec 03 2013 00:00:00 GMT-0800 (Pacific Standard Time) ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
-o = Tue Dec 03 2013 00:00:00 GMT-0800 (Pacific Standard Time) ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
-o = Tue Dec 03 2013 00:00:00 GMT-0800 (Pacific Standard Time) ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
+o = Tue Dec 03 2013 ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
+o = Tue Dec 03 2013 ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
+o = Tue Dec 03 2013 ({ a: undefined, b: undefined, c: undefined, p: undefined, q: undefined, x: 4, y: 5 })
 
 Test 43:
 o = [object Object] ({ a: 1, b: 2, c: 3, p: 1041, q: 1042, x: 4, y: 5 })

+ 6 - 6
test/fieldopts/objtypespec-newobj.2.js

@@ -415,13 +415,13 @@ function test41() {
 }
 
 var o = test41();
-writeLine("o = " + o + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
+writeLine("o = " + o.toDateString() + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
 
 o = test41();
-writeLine("o = " + o + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
+writeLine("o = " + o.toDateString() + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
 
 o = test41();
-writeLine("o = " + o + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
+writeLine("o = " + o.toDateString() + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
 writeLine("");
 
 writeLine("Test 42:");
@@ -439,13 +439,13 @@ function test42() {
 }
 
 var o = test42();
-writeLine("o = " + o + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
+writeLine("o = " + o.toDateString() + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
 
 o = test42();
-writeLine("o = " + o + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
+writeLine("o = " + o.toDateString() + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
 
 o = test42();
-writeLine("o = " + o + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
+writeLine("o = " + o.toDateString() + " ({ a: " + o.a + ", b: " + o.b + ", c: " + o.c + ", p: " + o.p + ", q: " + o.q + ", x: " + o.x + ", y: " + o.y + " })");
 writeLine("");
 
 writeLine("Test 43:");

+ 10 - 20
test/fieldopts/rlexe.xml

@@ -516,8 +516,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -525,8 +524,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:globOpt</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -534,8 +532,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:inline</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -543,8 +540,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:objTypeSpec</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -552,8 +548,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:objTypeSpecNewObj</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -561,8 +556,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:objTypeSpecNewObj -off:fixedNewObj</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -570,8 +564,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:fixedMethods</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -579,8 +572,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:splitNewScObject</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -588,8 +580,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:objTypeSpecNewObj -off:splitNewScObject</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>
@@ -597,8 +588,7 @@
       <files>objtypespec-newobj.2.js</files>
       <baseline>objtypespec-newobj.2.baseline</baseline>
       <compile-flags>-maxinterpretcount:2 -off:objTypeSpecNewObj -off:fixedNewObj -off:splitNewScObject</compile-flags>
-      <!-- test is timezone-sensitive; remove exclude_jenkins after fix (Microsoft/ChakraCore#319) -->
-      <tags>exclude_dynapogo,exclude_jenkins</tags>
+      <tags>exclude_dynapogo</tags>
     </default>
   </test>
   <test>

Някои файлове не бяха показани, защото твърде много файлове са промени