A6Ą2018.1.6f1ţ˙˙˙˙˙’3$řĚuń옲e+ Í=^7€˙˙˙˙€Ś€˛€ЀŚ€Ś€Ś€#Ś€+H€3˙˙˙˙€1€1€˙˙˙˙@ހ€ Q€j€ H€<˙˙˙˙ €1€1€˙˙˙˙ @ހ€ Q€j€Ő€I˙˙˙˙€1€1€˙˙˙˙Ŕހ€H€j€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€™€PAssetMetaDataguiddata[0]data[1]data[2]data[3]pathNameoriginalNamelabelsassetStoreRef ˙˙ŢšőRkVc}­j˘9Ź­;Ę7€˙˙˙˙€Ś€˛€ Ő€ ހ#€.€,€†€Ä€ ހ#€.€,€H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ ń€5˙˙˙˙ €1€1€˙˙˙˙ €ހ€€j€˙˙˙˙€G›€˙˙˙˙€H€]˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€H€b˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€H€k˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ#€.€,€Ő€p˙˙˙˙ €1€1€˙˙˙˙!Ŕހ€"€j€˙˙˙˙#€H€›€˙˙˙˙$€1€1€˙˙˙˙%@ހ€&Q€j€'y€ € (ހ#)€.€,*€ €„+@ž€“ ,@ހ#-€.€,.€H€˜˙˙˙˙/€1€1€˙˙˙˙0@ހ€1Q€j€2H€Ł˙˙˙˙3€1€1€˙˙˙˙4@ހ€5Q€j€6H€ľ˙˙˙˙7€1€1€˙˙˙˙8@ހ€9Q€j€:MonoImporterPPtrm_FileIDm_PathIDm_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariants˙˙˙8-l'€Łć„hŒÎA,Œ€7€˙˙˙˙€Ś€˛€Ő€ ހ€.€€†€Ä€ ހ€.€€H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ H€ę€˙˙˙˙ €1€1€˙˙˙˙ @ހ€Q€j€ń€(˙˙˙˙€1€1€˙˙˙˙€ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ€.€€y€< ހ€.€€ހCH€T˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€`˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&H€l˙˙˙˙'€1€1€˙˙˙˙(@ހ€)Q€j€*L€{+PPtrm_FileIDm_PathIDm_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespacem_AssemblyNamem_IsEditorScript|€DŕyŻČŮ%`łQxŹJJ÷“vOnŮČRPackages/com.unity.package-manager-ui/Tests/Editor/UI/PackageManagerWindowTests.csPackageManagerWindowTests %using System; using System.Collections.Generic; using System.Linq; using UnityEngine.Experimental.UIElements; using NUnit.Framework; using UnityEngine; namespace UnityEditor.PackageManager.UI.Tests { internal class PackageManagerWindowTests : UITests { // Filter change shows correct result private Action> onPackageChangedEvent; // TODO: We need to have a discussion on event de-registration [SetUp] public void Setup() { PackageCollection.Instance.SetFilter(PackageFilter.Local); PackageCollection.Instance.UpdatePackageCollection(true); SetPackages(null); Factory.ResetOperations(); } [TearDown] public void Dispose() { PackageCollection.Instance.OnPackagesChanged -= onPackageChangedEvent; } [Test] public void When_Default_FirstPackageUIElement_HasSelectedClass() { onPackageChangedEvent = packages => { var package = Container.Query(null, "package").First(); Assert.NotNull(package); Assert.IsTrue(package.ClassListContains(PackageItem.SelectedClassName)); }; PackageCollection.Instance.OnPackagesChanged += onPackageChangedEvent; SetPackages(PackageSets.Instance.Many(5, true)); } [Test] public void When_Default_PackageGroupsCollapsedState() { SetPackages(PackageSets.Instance.Many(5)); var packageGroups = Container.Query("groupContainerOuter").Build().ToList(); foreach (var packageGroup in packageGroups) { var groupHeader = packageGroup.Origin; var children = packageGroup.Query(null, "package").Build().ToList().Count; if (groupHeader == PackageGroupOrigins.Packages) Assert.IsTrue(packageGroup.Collapsed); // Make sure it is not collapsed else if (groupHeader == PackageGroupOrigins.BuiltInPackages) Assert.IsFalse(packageGroup.Collapsed); // Make sure it is collapsed } } [Test] public void When_Default_PackageGroupsCollapsedState_Has_NoChildren() { SetPackages(PackageSets.Instance.Many(5)); var packageGroups = Container.Query("groupContainerOuter").Build().ToList(); foreach (var packageGroup in packageGroups) { var groupHeader = packageGroup.Origin; var children = packageGroup.Query(null, "package").Build().ToList().Count; if (groupHeader == PackageGroupOrigins.Packages) { Assert.IsTrue(packageGroup.Collapsed); // Make sure it is not collapsed Assert.IsTrue(children > 0); // Make sure it is not collapsed } else if (groupHeader == PackageGroupOrigins.BuiltInPackages) { Assert.IsFalse(packageGroup.Collapsed); // Make sure it is collapsed Assert.IsTrue(children == 0); // Make sure it is collapsed } } } [Test] public void When_PackageCollection_Updates_PackageList_Updates() { var packages = PackageSets.Instance.Outdated(); var current = packages.ToList().First(); var latest = packages.ToList().Last(); SetPackages(packages); Factory.AddOperation = new MockAddOperation(Factory, latest); PackageCollection.Instance.SetListPackageInfos(packages); var package = PackageCollection.Instance.GetPackageByName(current.Name); onPackageChangedEvent = newpackages => { package = PackageCollection.Instance.GetPackageByName(current.Name); Assert.IsTrue(package.Current.PackageId == latest.PackageId); var packageItem = Container.Query(null, "package").Build().First(); var label = packageItem.Q