Skip to content
This repository
Browse code

tweak

  • Loading branch information...
commit 6b80c1d383821d1e70ac4295343decc21f2fb8ea 1 parent 358d8a6
bill shelton authored
5 .gitignore
... ... @@ -1,4 +1,7 @@
1 1 .project
2 2 MXUnitInstallTest.cfc
  3 +*.settings
  4 +buildprops/unames.properties
  5 +buildprops/antrunner.properties
3 6 *.svn
4   -**/.svn
  7 +**/.svn
7 README-toc.xml
... ... @@ -0,0 +1,7 @@
  1 +<?xml version='1.0' encoding='utf-8' ?>
  2 +<toc topic="README.html" label="README">
  3 + <topic href="README.html" label="MXUnit">
  4 + <topic href="README.html#Aboutthisrepository" label="About this repository"></topic>
  5 + <topic href="README.html#CollaboratingGuidelines" label="Collaborating Guidelines"></topic>
  6 + </topic>
  7 +</toc>
16 resources/jquery/jquery.runner.js
@@ -32,8 +32,6 @@
32 32 $('.summary a', container)
33 33 .addClass('active')
34 34 .click(function() {
35   - // Toggle the active class on the link
36   - $(this).toggleClass('active');
37 35
38 36 // Find what type of filter we are on
39 37 type = $(this).parent().attr('className');
@@ -76,13 +74,25 @@
76 74 }));
77 75
78 76 // Append the toggle option
79   - toggleContext.appendTo($('.summary ul', container));
  77 + toggleContext.appendTo($('.summary ul', container));
  78 +
  79 + toggleTests('passed');
80 80 });
81 81
82 82 function toggleTests( type ) {
83 83 debug('Toggling: ' + type);
84 84
85 85 $('tr.' + type, container).toggle();
  86 +
  87 +
  88 + // Toggle the active class on the link
  89 + $('.summary .' + type + ' a', container).toggleClass('active');
  90 +
  91 + // Hide suites with no visible tests
  92 + $('table.results>tbody:not(:has(>tr:visible))', container).parent().prev().andSelf().hide();
  93 +
  94 + // Show suites with visible tests
  95 + $('table.results>tbody:has(>tr:visible)', container).parent().prev().andSelf().show();
86 96 }
87 97
88 98 function debug(s) {
10 tests/build.xml
@@ -54,7 +54,7 @@
54 54
55 55 <directory runner="/mxunit/runner/HttpAntRunner.cfc"
56 56 remoteMethod="run"
57   - path="${component.path}\mxunit\tests\framework"
  57 + path="${component.path}/mxunit/tests/framework"
58 58 packageName="mxunit.tests.framework"
59 59 componentPath="mxunit.tests.framework"
60 60 recurse="false"
@@ -62,7 +62,7 @@
62 62
63 63 <directory runner="/mxunit/runner/HttpAntRunner.cfc"
64 64 remoteMethod="run"
65   - path="${component.path}\mxunit\tests\runner"
  65 + path="${component.path}/mxunit/tests/runner"
66 66 packageName="mxunit.tests.runner"
67 67 componentPath="mxunit.tests.runner"
68 68 recurse="false"
@@ -70,7 +70,7 @@
70 70
71 71 <directory runner="/mxunit/runner/HttpAntRunner.cfc"
72 72 remoteMethod="run"
73   - path="${component.path}\mxunit\tests\bugs"
  73 + path="${component.path}/mxunit/tests/bugs"
74 74 packageName="mxunit.tests.bugs"
75 75 componentPath="mxunit.tests.bugs"
76 76 recurse="false"
@@ -79,7 +79,7 @@
79 79
80 80 <directory runner="/mxunit/runner/HttpAntRunner.cfc"
81 81 remoteMethod="run"
82   - path="${component.path}\mxunit\tests\install"
  82 + path="${component.path}/mxunit/tests/install"
83 83 packageName="mxunit.tests.install"
84 84 componentPath="mxunit.tests.install"
85 85 recurse="false"
@@ -88,7 +88,7 @@
88 88
89 89 <directory runner="/mxunit/runner/HttpAntRunner.cfc"
90 90 remoteMethod="run"
91   - path="${component.path}\mxunit\tests\mightymock"
  91 + path="${component.path}/mxunit/tests/mightymock"
92 92 packageName="mxunit.tests.mightymock"
93 93 componentPath="mxunit.tests.imightymock"
94 94 recurse="false"

0 comments on commit 6b80c1d

Please sign in to comment.
Something went wrong with that request. Please try again.