Changeset 278690 in webkit
- Timestamp:
- Jun 9, 2021, 8:23:49 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
testing/Internals.cpp (modified) (1 diff)
-
testing/Internals.h (modified) (1 diff)
-
testing/Internals.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r278689 r278690 1 2021-06-09 Cameron McCormack <heycam@apple.com> 2 3 Add window.internals.log() 4 https://bugs.webkit.org/show_bug.cgi?id=226403 5 6 Reviewed by Tim Horton. 7 8 window.internals.log() writes output to stderr using WTFLogAlways. 9 This may be useful for interleaving some output generated from within a 10 test with WebCore logging, which also goes to stderr. console.log() 11 doesn't work for this, since that goes to stdout and is captured as 12 the test output. 13 14 * testing/Internals.cpp: 15 (WebCore::Internals::log): 16 * testing/Internals.h: 17 * testing/Internals.idl: 18 1 19 2021-06-09 Cathie Chen <cathiechen@igalia.com> 2 20 -
trunk/Source/WebCore/testing/Internals.cpp
r278618 r278690 768 768 } 769 769 770 void Internals::log(const String& value) 771 { 772 WTFLogAlways("%s", value.utf8().data()); 773 } 774 770 775 bool Internals::isPreloaded(const String& url) 771 776 { -
trunk/Source/WebCore/testing/Internals.h
r278618 r278690 170 170 String styleChangeType(Node&); 171 171 String description(JSC::JSValue); 172 void log(const String&); 172 173 173 174 bool isPreloaded(const String& url); -
trunk/Source/WebCore/testing/Internals.idl
r278618 r278690 281 281 DOMString styleChangeType(Node node); 282 282 DOMString description(any value); 283 undefined log(DOMString value); 283 284 284 285 // Animated image pausing testing.
Note:
See TracChangeset
for help on using the changeset viewer.