| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 # Remoting unit tests | 7 # Remoting unit tests |
| 8 { | 8 { |
| 9 'target_name': 'remoting_unittests', | 9 'target_name': 'remoting_unittests', |
| 10 'type': '<(gtest_target_type)', | 10 'type': '<(gtest_target_type)', |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 { | 302 { |
| 303 'target_name': 'remoting_webapp_unittest', | 303 'target_name': 'remoting_webapp_unittest', |
| 304 'type': 'none', | 304 'type': 'none', |
| 305 'variables': { | 305 'variables': { |
| 306 'output_dir': '<(PRODUCT_DIR)/remoting/unittests', | 306 'output_dir': '<(PRODUCT_DIR)/remoting/unittests', |
| 307 }, | 307 }, |
| 308 'copies': [ | 308 'copies': [ |
| 309 { | 309 { |
| 310 'destination': '<(output_dir)/qunit', | 310 'destination': '<(output_dir)/qunit', |
| 311 'files': [ | 311 'files': [ |
| 312 '../third_party/qunit/src/', | 312 '../third_party/qunit/src/browser_test_harness.js', |
| 313 '../third_party/qunit/src/qunit.css', |
| 314 '../third_party/qunit/src/qunit.js', |
| 313 ], | 315 ], |
| 314 }, | 316 }, |
| 315 { | 317 { |
| 316 'destination': '<(output_dir)/blanketjs', | 318 'destination': '<(output_dir)/blanketjs', |
| 317 'files': [ | 319 'files': [ |
| 318 '../third_party/blanketjs/src/', | 320 '../third_party/blanketjs/src/blanket.js', |
| 321 '../third_party/blanketjs/src/qunit_adapter.js', |
| 319 ], | 322 ], |
| 320 }, | 323 }, |
| 321 { | 324 { |
| 322 'destination': '<(output_dir)/sinonjs', | 325 'destination': '<(output_dir)/sinonjs', |
| 323 'files': [ | 326 'files': [ |
| 324 '../third_party/sinonjs/src/', | 327 '../third_party/sinonjs/src/sinon.js', |
| 328 '../third_party/sinonjs/src/sinon-qunit.js', |
| 325 ], | 329 ], |
| 326 }, | 330 }, |
| 327 { | 331 { |
| 328 'destination': '<(output_dir)', | 332 'destination': '<(output_dir)', |
| 329 'files': [ | 333 'files': [ |
| 330 '<@(remoting_webapp_main_html_js_files)', | 334 '<@(remoting_webapp_main_html_js_files)', |
| 331 ], | 335 ], |
| 332 }, | 336 }, |
| 333 { | 337 { |
| 334 'destination': '<(output_dir)', | 338 'destination': '<(output_dir)', |
| 335 'files': [ | 339 'files': [ |
| 336 '<@(remoting_webapp_unittest_cases)' | 340 '<@(remoting_webapp_unittest_cases)' |
| 337 ], | 341 ], |
| 338 }, | 342 }, |
| 339 ], | 343 ], |
| 340 'actions': [ | 344 'actions': [ |
| 341 { | 345 { |
| 342 'action_name': 'Build Remoting Webapp ut.html', | 346 'action_name': 'Build Remoting Webapp ut.html', |
| 343 'inputs': [ | 347 'inputs': [ |
| 344 'webapp/build-html.py', | 348 'webapp/build-html.py', |
| 345 '<(remoting_webapp_unittest_template_main)', | 349 '<(remoting_webapp_unittest_template_main)', |
| 346 '<@(remoting_webapp_main_html_js_files)', | 350 '<@(remoting_webapp_main_html_js_files)', |
| 347 '<@(remoting_webapp_unittest_exclude_files)', | 351 '<@(remoting_webapp_unittest_exclude_files)', |
| 348 '<@(remoting_webapp_unittest_cases)' | 352 '<@(remoting_webapp_unittest_cases)' |
| 349 ], | 353 ], |
| 350 'outputs': [ | 354 'outputs': [ |
| 351 '<(PRODUCT_DIR)/ut.html', | 355 '<(PRODUCT_DIR)/unittest.html', |
| 352 ], | 356 ], |
| 353 'action': [ | 357 'action': [ |
| 354 'python', 'webapp/build-html.py', | 358 'python', 'webapp/build-html.py', |
| 355 '<(output_dir)/unittest.html', | 359 '<(output_dir)/unittest.html', |
| 356 '<(remoting_webapp_unittest_template_main)', | 360 '<(remoting_webapp_unittest_template_main)', |
| 357 # GYP automatically removes subsequent duplicated command line | 361 # GYP automatically removes subsequent duplicated command line |
| 358 # arguments. Therefore, the excludejs flag must be set before the | 362 # arguments. Therefore, the excludejs flag must be set before the |
| 359 # instrumentedjs flag or else GYP will ignore the files in the | 363 # instrumentedjs flag or else GYP will ignore the files in the |
| 360 # exclude list. | 364 # exclude list. |
| 361 '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)', | 365 '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)', |
| 362 '--js', '<@(remoting_webapp_unittest_cases)', | 366 '--js', '<@(remoting_webapp_unittest_cases)', |
| 363 '--instrument-js', '<@(remoting_webapp_main_html_js_files)', | 367 '--instrument-js', '<@(remoting_webapp_main_html_js_files)', |
| 364 ], | 368 ], |
| 365 }, | 369 }, |
| 366 ], | 370 ], |
| 367 }, # end of target 'remoting_webapp_js_unittest' | 371 }, # end of target 'remoting_webapp_js_unittest' |
| 368 ], # end of targets | 372 ], # end of targets |
| 369 } | 373 } |
| OLD | NEW |