Changeset 31959 in webkit


Ignore:
Timestamp:
Apr 16, 2008 1:22:53 PM (16 years ago)
Author:
Adam Roben
Message:

Fix console-log-formatting to truly test formatting an undefined value

Exceptions thrown by the test will also now be shown as errors.

Reviewed by Tim Hatcher.

  • manual-tests/inspector/console-log-formatting.html: (test): Use console.error to report exceptions. (runTests): Use window.noSuchVariable instead of just noSuchVariable to avoid an exception.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r31958 r31959  
     12008-04-16  Adam Roben  <aroben@apple.com>
     2
     3        Fix console-log-formatting to truly test formatting an undefined value
     4
     5        Exceptions thrown by the test will also now be shown as errors.
     6
     7        Reviewed by Tim Hatcher.
     8
     9        * manual-tests/inspector/console-log-formatting.html:
     10        (test): Use console.error to report exceptions.
     11        (runTests): Use window.noSuchVariable instead of just noSuchVariable
     12        to avoid an exception.
     13
    1142008-04-16  Anatoli Papirovski  <apapirovski@mac.com>
    215
  • trunk/WebCore/manual-tests/inspector/console-log-formatting.html

    r31957 r31959  
    2020            eval("console.log(" + args + ")");
    2121        } catch (e) {
    22             console.log("%o", e);
     22            console.error(e);
    2323        }
    2424    }
     
    3131    function runTests() {
    3232        var values = [
    33             { value: "noSuchVariable", description: "undefined" },
     33            { value: "window.noSuchVariable", description: "undefined" },
    3434            { value: "s", description: "string" },
    3535            { value: "i", description: "positive integer" },
Note: See TracChangeset for help on using the changeset viewer.