protected internal override void Render(int indend, RenderingOptions options)
 {
     base.Render(indend, options);
     if (!Folded)
         foreach (var child in m_Children)
             child.Render(indend + 1, options);
 }
		protected internal override void Render (int indend, RenderingOptions options)
		{
			if (!AnyVisibleChildren (options)) return;
			base.Render (indend, options);
			if (!Folded)
				foreach (var child in children)
					child.Render (indend + 1, options);
		}
 protected internal override bool IsVisible(RenderingOptions options)
 {
     if (!string.IsNullOrEmpty(options.nameFilter) && !m_GameObject.name.ToLower().Contains(options.nameFilter.ToLower())) return false;
     if (!options.showSucceeded && m_Result.IsSuccess) return false;
     if (!options.showFailed && m_Result.IsFailure) return false;
     if (!options.showNotRunned && !m_Result.Executed) return false;
     if (!options.showIgnored && test.ignored) return false;
     return true;
 }
        protected internal override void DrawLine(Rect rect, GUIContent label, bool isSelected, RenderingOptions options)
        {
            EditorGUILayout.BeginHorizontal();

            EditorGUI.BeginChangeCheck();
            var isClassFolded = !EditorGUI.Foldout(rect, !Folded, label, isSelected ? Styles.selectedFoldout : Styles.foldout);
            if (EditorGUI.EndChangeCheck()) Folded = isClassFolded;

            EditorGUILayout.EndHorizontal();
        }
		protected override void DrawLine (bool isSelected, RenderingOptions options)
		{
			var resultIcon = GetResult ().HasValue ? GuiHelper.GetIconForResult (GetResult ().Value) : Icons.unknownImg;

			var guiContent = new GUIContent (renderedName, resultIcon, fullName);

			var rect = GUILayoutUtility.GetRect (guiContent, Styles.foldout, GUILayout.MaxHeight (16));

			OnLeftMouseButtonClick (rect);
			OnContextClick (rect);

			EditorGUI.BeginChangeCheck ();
			var expanded = !EditorGUI.Foldout (rect, !Folded, guiContent, false, isSelected ? Styles.selectedFoldout : Styles.foldout);
			if (EditorGUI.EndChangeCheck ()) Folded = expanded;
		}
        protected internal override void DrawLine(Rect rect, GUIContent label, bool isSelected, RenderingOptions options)
        {
            if(Event.current.type != EventType.repaint)
                return;

            Styles.testName.Draw (rect, label, false, false, false, isSelected);

            if (m_Result.IsTimeout)
            {
                float min, max;
                Styles.testName.CalcMinMaxWidth(label, out min, out max);
                var timeoutRect = new Rect(rect);
                timeoutRect.x += min - 12;
                Styles.testName.Draw(timeoutRect, s_GUITimeoutIcon, false, false, false, isSelected);
            }
        }
        protected internal override void DrawLine(Rect rect, GUIContent label, bool isSelected, RenderingOptions options) {
            EditorGUILayout.BeginHorizontal();
            rect.x += 10;

            EditorGUI.LabelField(rect, label, isSelected ? Styles.selectedLabel : Styles.label);

            if (result.IsTimeout) {
                var timeoutRect = new Rect(rect);
                timeoutRect.x = timeoutRect.x + timeoutRect.width;
                timeoutRect.width = 24;
                EditorGUI.LabelField(timeoutRect, guiTimeoutIcon);
                GUILayout.FlexibleSpace();
            }

            EditorGUILayout.EndHorizontal();
        }
 protected internal override bool IsVisible(RenderingOptions options)
 {
     return m_Children.Any(c => c.IsVisible(options));
 }
 protected abstract void DrawLine(bool isSelected, RenderingOptions options);
Exemple #10
0
 private bool AnyVisibleChildren(RenderingOptions options)
 {
     return(children.Any(l => l.IsVisible(options) == true));
 }
        protected internal override void DrawLine(Rect rect, GUIContent label, bool isSelected, RenderingOptions options)
        {
            EditorGUILayout.BeginHorizontal();

            EditorGUI.BeginChangeCheck();
            var isClassFolded = !EditorGUI.Foldout(rect, !Folded, label, isSelected ? Styles.selectedFoldout : Styles.foldout);

            if (EditorGUI.EndChangeCheck())
            {
                Folded = isClassFolded;
            }

            EditorGUILayout.EndHorizontal();
        }
        protected internal override void DrawLine(Rect rect, GUIContent label, bool isSelected, RenderingOptions options)
        {
            if (Event.current.type != EventType.repaint)
            {
                return;
            }

            Styles.testName.Draw(rect, label, false, false, false, isSelected);

            if (m_Result.IsTimeout)
            {
                float min, max;
                Styles.testName.CalcMinMaxWidth(label, out min, out max);
                var timeoutRect = new Rect(rect);
                timeoutRect.x += min - 12;
                Styles.testName.Draw(timeoutRect, s_GUITimeoutIcon, false, false, false, isSelected);
            }
        }
Exemple #13
0
 protected internal override bool IsVisible(RenderingOptions options)
 {
     return(AnyVisibleChildren(options));
 }
Exemple #14
0
 protected internal abstract void DrawLine(Rect rect, GUIContent label, bool isSelected, RenderingOptions options);
		private bool PrintTestList ( IntegrationTestRendererBase[] renderedLines )
		{
			if (renderedLines == null) return false;

			var filter = new RenderingOptions ();
			filter.showSucceeded = settings.showSucceededTest;
			filter.showFailed = settings.showFailedTest;
			filter.showNotRunned = settings.showNotRunnedTest;
			filter.showIgnored = settings.showIgnoredTest;
			filter.nameFilter = settings.filterString;

			bool repaint = false;
			foreach (var renderedLine in renderedLines)
			{
				repaint |= renderedLine.Render (filter);
			}
			return repaint;
		}
Exemple #16
0
 protected internal override bool IsVisible(RenderingOptions options)
 {
     return(m_Children.Any(c => c.IsVisible(options)));
 }
 public RenderingOptions BuildRenderingOptions()
 {
     var options = new RenderingOptions();
     options.showSucceeded = ShowSucceeded;
     options.showFailed = ShowFailed;
     options.showIgnored = ShowIgnored;
     options.showNotRunned = ShowNotRun;
     options.nameFilter = FilterByName;
     options.categories = GetSelectedCategories();
     return options;
 }
Exemple #18
0
 protected internal abstract bool IsVisible(RenderingOptions options);
		private bool AnyVisibleChildren (RenderingOptions options)
		{
			return children.Any (l => l.IsVisible (options) == true);
		}
		protected internal override bool IsVisible (RenderingOptions options)
		{
			return AnyVisibleChildren (options);
		}
Exemple #21
0
        private void RenderTestList()
        {
            EditorGUILayout.BeginVertical (Styles.testList);
            testListScroll = EditorGUILayout.BeginScrollView (testListScroll,
                                                                GUILayout.ExpandWidth (true),
                                                                GUILayout.MaxWidth (2000));
            if (testLines != null)
            {
                var options = new RenderingOptions ();
                options.showSucceeded = showSucceeded;
                options.showFailed = showFailed;
                options.showIgnored = showIgnored;
                options.showNotRunned = showNotRun;
                options.nameFilter = testFilter;
                options.categories = GetSelectedCategories ();

                if (testLines.Render (options)) Repaint ();
            }
            EditorGUILayout.EndScrollView ();
            EditorGUILayout.EndVertical ();
        }
        protected internal override void DrawLine(Rect rect, GUIContent label, bool isSelected, RenderingOptions options)
        {
            EditorGUILayout.BeginHorizontal();
            rect.x += 10;

            EditorGUI.LabelField(rect, label, isSelected ? Styles.selectedLabel : Styles.label);

            if (m_Result.IsTimeout)
            {
                var timeoutRect = new Rect(rect);
                timeoutRect.x     = timeoutRect.x + timeoutRect.width;
                timeoutRect.width = 24;
                EditorGUI.LabelField(timeoutRect, s_GUITimeoutIcon);
                GUILayout.FlexibleSpace();
            }
            EditorGUILayout.EndHorizontal();
        }