| Index: third_party/WebKit/ManualTests/inspector/hidden-evals.html
|
| diff --git a/third_party/WebKit/ManualTests/inspector/hidden-evals.html b/third_party/WebKit/ManualTests/inspector/hidden-evals.html
|
| index c507bcd70092473a629a8a605bd37657a905f542..765df0eba3cadf1e9f890d7b9cbcc1a1c9c2e7e6 100644
|
| --- a/third_party/WebKit/ManualTests/inspector/hidden-evals.html
|
| +++ b/third_party/WebKit/ManualTests/inspector/hidden-evals.html
|
| @@ -1,14 +1,14 @@
|
|
|
| <p><b>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=30212">Bug 30212</a> - Each JS execution in console adds extra item into "scripts" combo</b>
|
|
|
| -<p>The following manual test creates functions via <tt>eval()</tt> and the
|
| -<tt>Function()</tt> constructor, some functions are named using the
|
| -<code>//@sourceURL=</code> directive, some aren't. Some contain
|
| +<p>The following manual test creates functions via <tt>eval()</tt> and the
|
| +<tt>Function()</tt> constructor, some functions are named using the
|
| +<code>//# sourceURL=</code> directive, some aren't. Some contain
|
| <tt>debugger</tt> commands, some don't.
|
|
|
| -<p>The functions named <tt>f_named_X</tt> are 'named' via the
|
| -<code>//@sourceURL=</code> directive, the ones named <tt>f_unnamed_X</tt>
|
| -are not. The 'named' functions should show up in the Scripts select element used
|
| +<p>The functions named <tt>f_named_X</tt> are 'named' via the
|
| +<code>//# sourceURL=</code> directive, the ones named <tt>f_unnamed_X</tt>
|
| +are not. The 'named' functions should show up in the Scripts select element used
|
| to select a resource/script to view, the 'unnamed' ones should not.
|
|
|
| <ul>
|
| @@ -25,8 +25,8 @@ to select a resource/script to view, the 'unnamed' ones should not.
|
| <li><p>debugger should stop in the <code>clickHandler</code> function
|
| <li><p>at this point, start stepping <b>into</b> the code
|
| <li><p>you should be able to step into functions <code>f_unnamed_1()</code>
|
| -and <code>f_unnamed_2()</code>. There are no resource/scripts in the
|
| -select element that contain these functions, until you actually are paused
|
| +and <code>f_unnamed_2()</code>. There are no resource/scripts in the
|
| +select element that contain these functions, until you actually are paused
|
| in them. At that point, entries for these functions will be in the select element,
|
| named: "(program)". After pausing in both functions, there will be two "(program)"
|
| entries.
|
| @@ -56,7 +56,7 @@ eval([
|
| " doNothing();",
|
| " return 'named_1';",
|
| "}",
|
| - "//@sourceURL=f_named_1.eval"
|
| + "//# sourceURL=f_named_1.eval"
|
| ].join("\n"));
|
|
|
| eval([
|
| @@ -70,7 +70,7 @@ f_named_2 = Function([
|
| "",
|
| " doNothing();",
|
| " return 'named_2';",
|
| - "//@sourceURL=f_named_2.eval"
|
| + "//# sourceURL=f_named_2.eval"
|
| ].join("\n"));
|
|
|
| f_unnamed_2 = Function([
|
| @@ -84,7 +84,7 @@ f_named_3 = Function([
|
| " debugger;",
|
| " doNothing();",
|
| " return 'named_3';",
|
| - "//@sourceURL=f_named_3.eval"
|
| + "//# sourceURL=f_named_3.eval"
|
| ].join("\n"));
|
|
|
| f_unnamed_3 = Function([
|
| @@ -104,11 +104,11 @@ function clickHandler() {
|
| f_unnamed_1();
|
| f_named_2();
|
| f_unnamed_2();
|
| -
|
| +
|
| // press "resume" at this point
|
| console.log("press resume before calling f_named_3()");
|
| f_named_3();
|
| -
|
| +
|
| // press "resume" at this point
|
| console.log("press resume before calling f_unnamed_3()");
|
| f_unnamed_3();
|
|
|