File: importList.html

package info (click to toggle)
qtwebkit-opensource-src 5.3.2%2Bdfsg-2~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 291,472 kB
  • sloc: cpp: 1,358,084; python: 70,286; ansic: 42,964; perl: 35,474; ruby: 12,229; objc: 9,465; xml: 8,396; asm: 3,866; yacc: 2,397; sh: 1,647; makefile: 644; lex: 644; java: 110
file content (69 lines) | stat: -rw-r--r-- 2,160 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>Import Test List</title>
    <script language="JavaScript">
      function onRadioClick (name)
      {
	  var radio = document.forms["foo"].elements[name];
	  radio.checked = !radio.checked;
	  return false;
      }

      function doImport()
      {
          var lines =
              document.forms["foo"].elements["testList"].value.split(/\r?\n/);
          var suites = window.opener.suites;
          var elems = window.opener.document.forms["testCases"].elements;

          if (document.forms["foo"].elements["clear_all"].checked)
              window.opener.selectNone();

          for (var l in lines)
          {
              if (lines[l].search(/^\s$|\s*\#/) == -1)
              {
                  var ary = lines[l].match (/(.*)\/(.*)\/(.*)/);

                  if (!ary) 
                      if (!confirm ("Line " + lines[l] + " is confusing, " +
                                    "continue with import?"))
                          return;
                      else
                          continue;
                  
                  if (suites[ary[1]] && suites[ary[1]].testDirs[ary[2]] &&
                      suites[ary[1]].testDirs[ary[2]].tests[ary[3]])
                      elems[suites[ary[1]].testDirs[ary[2]].tests[ary[3]]].
                          checked = true;    
              }
          }

          window.opener.updateTotals();

	  window.close();
                  
      }
      </script>
  </head>

  <body>
    
    <form name="foo">
      <textarea rows="25" cols="50" name="testList"></textarea><br>
      <input type="radio" name="clear_all" checked 
        onclick="return onRadioClick('clear_all');">
      &nbsp;Clear all selections berofe import.<br>
      <input type="button" value="Import" onclick="doImport();">
      <input type="button" value="Cancel" onclick="window.close();">
    </form>

    <hr>
    <address><a href="mailto:rginda@netscape.com"></a></address>
<!-- Created: Wed Nov 17 13:52:23 PST 1999 -->
<!-- hhmts start -->
Last modified: Wed Nov 17 14:18:42 PST 1999
<!-- hhmts end -->
  </body>
</html>