 Chromium Code Reviews
 Chromium Code Reviews Issue 11236025:
  Test that debug stub works with browser.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/
    
  
    Issue 11236025:
  Test that debug stub works with browser.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import sys | |
| 6 | |
| 7 import gdb_rsp | |
| 8 | |
| 9 | |
| 10 def TestContinue(connection): | |
| 11 result = connection.RspRequest('vCont;c') | |
| 12 # Once NaCl test module reports that test passed, NaCl embed tag is removed | |
| 
Mark Seaborn
2012/12/05 18:00:47
Nit: Add articles - "the NaCl <embed> element is r
 
halyavin
2012/12/06 15:35:01
Done.
 | |
| 13 # from the page and so NaCl module is killed by browser what is reported as | |
| 14 # exit due to SIGKILL (X09). | |
| 15 assert result == 'X09', result | |
| 16 | |
| 17 | |
| 18 def Main(args): | |
| 19 port = int(args[0]) | |
| 20 name = args[1] | |
| 21 connection = gdb_rsp.GdbRspConnection(('localhost', port)) | |
| 22 if name == 'continue': | |
| 23 TestContinue(connection) | |
| 24 else: | |
| 25 raise AssertionError, "Unknown test name" | |
| 
Mark Seaborn
2012/12/05 18:00:47
raise AssertionError('Unknown test name: %r' % nam
 
halyavin
2012/12/06 15:35:01
Done.
 | |
| 26 | |
| 27 | |
| 28 if __name__ == '__main__': | |
| 29 Main(sys.argv[1:]) | |
| OLD | NEW |