|
58 | 58 | var open_file = {}; |
59 | 59 | open_file.scriptRelativePath = 'perl-scripts/open-files.pl'; |
60 | 60 | open_file.stdoutFunction = function (stdout) { |
61 | | - clearTestData(); |
62 | 61 | displayTestResult('open-file', stdout); |
63 | 62 | } |
64 | 63 |
|
65 | 64 | var open_files = {}; |
66 | 65 | open_files.scriptRelativePath = 'perl-scripts/open-files.pl'; |
67 | 66 | open_files.stdoutFunction = function (stdout) { |
68 | | - clearTestData(); |
69 | 67 | displayTestResult('open-files', stdout); |
70 | 68 | } |
71 | 69 |
|
72 | 70 | var open_directory = {}; |
73 | 71 | open_directory.scriptRelativePath = 'perl-scripts/open-directory.pl'; |
74 | 72 | open_directory.stdoutFunction = function (stdout) { |
75 | | - clearTestData(); |
76 | 73 | displayTestResult('open-directory', stdout); |
77 | 74 | } |
78 | 75 |
|
|
95 | 92 | select_file.type = 'single-file'; |
96 | 93 | select_file.receiverFunction = function (fileName) { |
97 | 94 | open_file.inputData = fileName; |
| 95 | + clearTestData(); |
98 | 96 | peb.startScript('open_file.script'); |
99 | 97 | } |
100 | 98 |
|
101 | 99 | var new_file_name = {}; |
102 | 100 | new_file_name.type = 'new-file-name'; |
103 | 101 | new_file_name.receiverFunction = function (fileName) { |
| 102 | + clearTestData(); |
104 | 103 | var pre = document.createElement("pre"); |
105 | 104 | pre.innerHTML = 'New file name: ' + fileName; |
106 | 105 | document.getElementById('tests').appendChild(pre); |
|
110 | 109 | select_files.type = 'multiple-files'; |
111 | 110 | select_files.receiverFunction = function (fileNames) { |
112 | 111 | open_files.inputData = fileNames; |
| 112 | + clearTestData(); |
113 | 113 | peb.startScript('open_files.script'); |
114 | 114 | } |
115 | 115 |
|
116 | 116 | var select_directory = {}; |
117 | 117 | select_directory.type = 'directory'; |
118 | 118 | select_directory.receiverFunction = function (directoryName) { |
119 | 119 | open_directory.inputData = directoryName; |
| 120 | + clearTestData(); |
120 | 121 | peb.startScript('open_directory.script'); |
121 | 122 | } |
122 | 123 |
|
|
0 commit comments