Prechádzať zdrojové kódy

Update TestManager.bf

actually use and resolve Name attribute
Jannis 1 rok pred
rodič
commit
1f6e15bef7
1 zmenil súbory, kde vykonal 18 pridanie a 3 odobranie
  1. 18 3
      IDE/src/TestManager.bf

+ 18 - 3
IDE/src/TestManager.bf

@@ -388,10 +388,25 @@ namespace IDE
 							testEntry.mLine = int32.Parse(cmdParts[3]).Get();
 							testEntry.mColumn = int32.Parse(cmdParts[4]).Get();
 
-							testEntry.mShouldFail = attribs.Contains("Sf");
-							testEntry.mProfile = attribs.Contains("Pr");
-							testEntry.mIgnore = attribs.Contains("Ig");
 
+							List<StringView> attributes = scope .(attribs.Split('\a'));
+							for(var i in attributes)
+							{
+								if(i.StartsWith('\v'))
+								{
+									if(i == "\vSf")
+										testEntry.mShouldFail = true;
+									else if(i == "\vPr")
+										testEntry.mProfile = true;
+									else if(i == "\vIg")
+										testEntry.mIgnore = true;
+								}
+								else if(i.StartsWith("Name"))
+								{
+									testEntry.mName.Clear();
+									scope String(i.Substring("Name".Length)).Escape(testEntry.mName);
+								}
+							}
 							testInstance.mTestEntries.Add(testEntry);
 						}
 					}