Revision: 22e2400f40d8
Branch:   default
Author:   Pekka Klärck
Date:     Fri Feb  7 09:47:37 2014 UTC
Log:      report: Tuning search.

Update issue 1635
Tuning:
- Fixed search when URL doesn't contain all terms.
- Remove search buttons when printing.
- Scroll to search when URL has only "#search".
- Fixed major typo in doc. Search is 'case insensitive', not 'case sensitive'.
http://code.google.com/p/robotframework/source/detail?r=22e2400f40d8

Modified:
 /src/robot/htmldata/rebot/print.css
 /src/robot/htmldata/rebot/report.html

=======================================
--- /src/robot/htmldata/rebot/print.css Thu Feb  6 21:14:42 2014 UTC
+++ /src/robot/htmldata/rebot/print.css Fri Feb  7 09:47:37 2014 UTC
@@ -12,7 +12,7 @@
 .details, .statistics {
     width: 100%;
 }
-#generated-ago, #top-right-header, #normal-selector,
+#generated-ago, #top-right-header, #normal-selector, #search-buttons,
 .folding-button, .expand, .hidden, .details-col-toggle {
     display: none;
 }
=======================================
--- /src/robot/htmldata/rebot/report.html       Thu Feb  6 21:15:25 2014 UTC
+++ /src/robot/htmldata/rebot/report.html       Fri Feb  7 09:47:37 2014 UTC
@@ -113,7 +113,8 @@
     var query = parts.join('?');
     if (name == 'search') {
         var params = util.parseQueryString(query);
- searchExecuted(params.suite, params.test, params.include, params.exclude);
+        searchExecuted(params.suite || '', params.test || '',
+                       params.include || '', params.exclude || '');
         return
     }
     query = decodeURIComponent(query);
@@ -223,6 +224,8 @@
                          '&test=' + encodeURIComponent(test) +
                          '&include=' + encodeURIComponent(include) +
                          '&exclude=' + encodeURIComponent(exclude));
+    } else {
+        scrollToSelector('search');
     }
 }

@@ -572,7 +575,7 @@
         <th><label for="search-exclude">Exclude:</label></th>
         <td><input id="search-exclude" type="text" value="${exclude}"></td>
       </tr>
-      <tr>
+      <tr id="search-buttons">
         <th></th>
         <td>
           <input type="submit" value="Search"
@@ -647,7 +650,7 @@
             <h3>Patterns</h3>
             <p>
All searches support <em>*</em> and <em>?</em> wildcards and are - case, space and underscore sensitive. Tag related searches also + case, space and underscore insensitive. Tag related searches also support <em>AND</em>, <em>OR</em> and <em>NOT</em> (case-sensitive)
               combining operators. If operators are used together, their
precedence, from highest to lowest, is <em>AND</em>, <em>OR</em>,

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to