OLD | NEW |
---|---|
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 assertEquals(Debug.ScriptType.Native, debug_delay_script.type); | 89 assertEquals(Debug.ScriptType.Native, debug_delay_script.type); |
90 | 90 |
91 // Test an extension script. | 91 // Test an extension script. |
92 var extension_gc_script = Debug.findScript('v8/gc'); | 92 var extension_gc_script = Debug.findScript('v8/gc'); |
93 if (extension_gc_script) { | 93 if (extension_gc_script) { |
94 assertEquals('v8/gc', extension_gc_script.name); | 94 assertEquals('v8/gc', extension_gc_script.name); |
95 assertEquals(Debug.ScriptType.Extension, extension_gc_script.type); | 95 assertEquals(Debug.ScriptType.Extension, extension_gc_script.type); |
96 } | 96 } |
97 | 97 |
98 // Test a normal script. | 98 // Test a normal script. |
99 var mjsunit_js_script = Debug.findScript(/mjsunit.js/); | 99 var mjsunit_js_script = Debug.findScript(/debug-script.js/); |
vogelheim
2015/01/16 12:37:23
nipitck: Change var name to match, ie. debug_js_sc
| |
100 assertTrue(/mjsunit.js/.test(mjsunit_js_script.name)); | 100 assertTrue(/debug-script.js/.test(mjsunit_js_script.name)); |
101 assertEquals(Debug.ScriptType.Normal, mjsunit_js_script.type); | 101 assertEquals(Debug.ScriptType.Normal, mjsunit_js_script.type); |
102 | 102 |
103 // Check a nonexistent script. | 103 // Check a nonexistent script. |
104 var dummy_script = Debug.findScript('dummy.js'); | 104 var dummy_script = Debug.findScript('dummy.js'); |
105 assertTrue(typeof dummy_script == 'undefined'); | 105 assertTrue(typeof dummy_script == 'undefined'); |
OLD | NEW |