Пример #1
0
 public void GetChangeSetFromStatuses_TestData_3()
 {
     var changeInfoSet = PlatformStatusTracking.GetChangeInfoSetFromStatuses(
         PlatformStatuses.DeserializeForWebKitStatus(File.ReadAllText("TestData\\webkitwebcore-features_182134.json")),
         PlatformStatuses.DeserializeForWebKitStatus(File.ReadAllText("TestData\\webkitwebcore-features_182928.json"))
         );
 }
Пример #2
0
 public void GetChangeSetFromStatuses_TestData_4()
 {
     var changeInfoSet = PlatformStatusTracking.GetChangeInfoSetFromStatuses(
         PlatformStatuses.DeserializeForMozillaStatus(File.ReadAllText("TestData\\mozilla-platatus_20151029_2f324f9.json")),
         PlatformStatuses.DeserializeForMozillaStatus(File.ReadAllText("TestData\\mozilla-platatus_20151125_888cfed.json"))
         );
 }
Пример #3
0
 public void GetChangeSetFromStatuses_TestData_2()
 {
     var changeInfoSet = PlatformStatusTracking.GetChangeInfoSetFromStatuses(
         PlatformStatuses.DeserializeForChromiumStatus(File.ReadAllText("TestData\\chromestatus-com_20140529.json")),
         PlatformStatuses.DeserializeForChromiumStatus(File.ReadAllText("TestData\\chromestatus-com_20140531.json"))
         );
 }
Пример #4
0
 public void GetChangeSetFromStatuses_TestData_1()
 {
     var changeInfoSet = PlatformStatusTracking.GetChangeInfoSetFromStatuses(
         PlatformStatuses.DeserializeForIeStatus(File.ReadAllText("TestData\\status-modern-ie_20140529.json")),
         PlatformStatuses.DeserializeForIeStatus(File.ReadAllText("TestData\\status-modern-ie_20140531.json"))
         );
 }
Пример #5
0
        public void Deserialize_ChromeStatus_Json_1()
        {
            var jsonData         = File.ReadAllText("TestData\\chromestatus-com_20140529.json");
            var deserializedData = PlatformStatuses.DeserializeForIeStatus(jsonData);

            deserializedData.IsNotNull();
        }
Пример #6
0
        public void Deserialize_ModernIe_Json_1()
        {
            var jsonData         = File.ReadAllText("TestData\\status-modern-ie_20140529.json");
            var deserializedData = PlatformStatuses.DeserializeForIeStatus(jsonData);

            deserializedData.IsNotNull();
        }
Пример #7
0
        public void GetChangeSetFromStatuses_Empty()
        {
            var changeInfoSet = PlatformStatusTracking.GetChangeInfoSetFromStatuses(
                PlatformStatuses.DeserializeForIeStatus(@"[]"),
                PlatformStatuses.DeserializeForIeStatus(@"[]")
                );

            changeInfoSet.Length.Is(0);
        }
Пример #8
0
        public void GetChangeSetFromStatuses_AddNewStatus()
        {
            var changeInfoSet = PlatformStatusTracking.GetChangeInfoSetFromStatuses(
                PlatformStatuses.DeserializeForIeStatus(@"[]"),
                PlatformStatuses.DeserializeForIeStatus(@"[{""name"":""Promises (ES6)"",""category"":""JavaScript"",""link"":""https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects"",""summary"":""Allows easier and cleaner asynchronous coding. Adds the Promise constructor, along with the 'all' and 'race' utility methods to the language itself."",""standardStatus"":""Editor's Draft"",""ieStatus"":{""text"":""In Development"",""iePrefixed"":"""",""ieUnprefixed"":""""},""msdn"":"""",""wpd"":"""",""demo"":"""",""id"":5681726336532480}]")
                );

            changeInfoSet.Length.Is(1);
            changeInfoSet[0].IsAdded.IsTrue();
            changeInfoSet[0].IsRemoved.IsFalse();
            changeInfoSet[0].IsChanged.IsFalse();
            changeInfoSet[0].OldStatus.IsNull();
            changeInfoSet[0].NewStatus.IsNotNull();
            changeInfoSet[0].NewStatus.Name.Is("Promises (ES6)");
        }
Пример #9
0
        public void GetChangeSetFromStatuses_ChangeStatus_IeStatus_TextAndPrefixed_1()
        {
            var changeInfoSet = PlatformStatusTracking.GetChangeInfoSetFromStatuses(
                PlatformStatuses.DeserializeForIeStatus(@"[{""name"":""A"",""category"":""JavaScript"",""link"":""http://www.example.com/"",""summary"":""a summary of the status"",""standardStatus"":""Editor's Draft"",""ieStatus"":{""text"":""Shipped"",""iePrefixed"":""10"",""ieUnprefixed"":""""},""msdn"":"""",""wpd"":"""",""demo"":"""",""id"":5681726336532480}]"),
                PlatformStatuses.DeserializeForIeStatus(@"[{""name"":""A"",""category"":""JavaScript"",""link"":""http://www.example.com/"",""summary"":""a summary of the status"",""standardStatus"":""Editor's Draft"",""ieStatus"":{""text"":""Shipped"",""iePrefixed"":""10"",""ieUnprefixed"":""11""},""msdn"":"""",""wpd"":"""",""demo"":"""",""id"":5681726336532480}]")
                );

            changeInfoSet.Length.Is(1);
            changeInfoSet[0].IsAdded.IsFalse();
            changeInfoSet[0].IsRemoved.IsFalse();
            changeInfoSet[0].IsChanged.IsTrue();

            changeInfoSet[0].OldStatus.IsNotNull();
            changeInfoSet[0].OldStatus.Name.Is("A");
            ((IePlatformStatus)changeInfoSet[0].OldStatus).IeStatus.Text.Is("Shipped");
            ((IePlatformStatus)changeInfoSet[0].OldStatus).IeStatus.IePrefixed.Is("10");
            ((IePlatformStatus)changeInfoSet[0].OldStatus).IeStatus.IeUnprefixed.Is("");

            changeInfoSet[0].NewStatus.IsNotNull();
            changeInfoSet[0].NewStatus.Name.Is("A");
            ((IePlatformStatus)changeInfoSet[0].NewStatus).IeStatus.Text.Is("Shipped");
            ((IePlatformStatus)changeInfoSet[0].NewStatus).IeStatus.IePrefixed.Is("10");
            ((IePlatformStatus)changeInfoSet[0].NewStatus).IeStatus.IeUnprefixed.Is("11");
        }