haikuwebkit/LayoutTests/inspector/debugger/sourceURLs-expected.txt

27 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

Web Inspector: JavaScriptCore should parse sourceURL and sourceMappingURL directives https://bugs.webkit.org/show_bug.cgi?id=150096 Reviewed by Geoffrey Garen. Source/JavaScriptCore: * inspector/ContentSearchUtilities.cpp: (Inspector::ContentSearchUtilities::scriptCommentPattern): Deleted. (Inspector::ContentSearchUtilities::findScriptSourceURL): Deleted. (Inspector::ContentSearchUtilities::findScriptSourceMapURL): Deleted. * inspector/ContentSearchUtilities.h: No longer need to search script content. * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchDidParseSource): Carry over the sourceURL and sourceMappingURL from the SourceProvider. * inspector/agents/InspectorDebuggerAgent.cpp: (Inspector::InspectorDebuggerAgent::sourceMapURLForScript): (Inspector::InspectorDebuggerAgent::didParseSource): No longer do content searching. * parser/Lexer.cpp: (JSC::Lexer<T>::setCode): (JSC::Lexer<T>::skipWhitespace): (JSC::Lexer<T>::parseCommentDirective): (JSC::Lexer<T>::parseCommentDirectiveValue): (JSC::Lexer<T>::consume): (JSC::Lexer<T>::lex): * parser/Lexer.h: (JSC::Lexer::sourceURL): (JSC::Lexer::sourceMappingURL): (JSC::Lexer::sourceProvider): Deleted. Give lexer the ability to detect script comment directives. This just consumes characters in single line comments and ultimately sets the sourceURL or sourceMappingURL found. * parser/Parser.h: (JSC::Parser<LexerType>::parse): * parser/SourceProvider.h: (JSC::SourceProvider::url): (JSC::SourceProvider::sourceURL): (JSC::SourceProvider::sourceMappingURL): (JSC::SourceProvider::setSourceURL): (JSC::SourceProvider::setSourceMappingURL): After parsing a script, update the Source Provider with the value of directives that may have been found in the script. Source/WebInspectorUI: * UserInterface/Test/InspectorProtocol.js: (InspectorProtocol._sendMessage): (InspectorProtocol.dispatchMessageFromBackend): This is only used for tests, so avoid console.log and just dump directly to the system console. LayoutTests: * inspector/debugger/sourceURLs-expected.txt: Added. * inspector/debugger/sourceURLs.html: Added. sourceURL and sourceMappingURL detection. Canonical link: https://commits.webkit.org/168521@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-20 20:48:49 +00:00
Tests for the Debugger.scriptParsed sourceURL and sourceMappingURL comment directive parsing.
== Running test suite: Debugger.scriptParsed.sourceURL-directives
-- Running test case: TestExpressionsForSourceURL
Found Script with sourceURL 'test1.js'
Found Script with sourceURL 'test2.js'
Found Script with sourceURL 'test3.js'
Found Script with sourceURL 'test4.js'
Found Script with sourceURL 'test5.js'
Found Script with sourceURL 'test6.js'
Found Script with sourceURL 'test7.js'
Found Script with sourceURL 'test8.js'
Found Script with sourceURL 'second.js'
Web Inspector: JavaScriptCore should parse sourceURL and sourceMappingURL directives https://bugs.webkit.org/show_bug.cgi?id=150096 Reviewed by Geoffrey Garen. Source/JavaScriptCore: * inspector/ContentSearchUtilities.cpp: (Inspector::ContentSearchUtilities::scriptCommentPattern): Deleted. (Inspector::ContentSearchUtilities::findScriptSourceURL): Deleted. (Inspector::ContentSearchUtilities::findScriptSourceMapURL): Deleted. * inspector/ContentSearchUtilities.h: No longer need to search script content. * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchDidParseSource): Carry over the sourceURL and sourceMappingURL from the SourceProvider. * inspector/agents/InspectorDebuggerAgent.cpp: (Inspector::InspectorDebuggerAgent::sourceMapURLForScript): (Inspector::InspectorDebuggerAgent::didParseSource): No longer do content searching. * parser/Lexer.cpp: (JSC::Lexer<T>::setCode): (JSC::Lexer<T>::skipWhitespace): (JSC::Lexer<T>::parseCommentDirective): (JSC::Lexer<T>::parseCommentDirectiveValue): (JSC::Lexer<T>::consume): (JSC::Lexer<T>::lex): * parser/Lexer.h: (JSC::Lexer::sourceURL): (JSC::Lexer::sourceMappingURL): (JSC::Lexer::sourceProvider): Deleted. Give lexer the ability to detect script comment directives. This just consumes characters in single line comments and ultimately sets the sourceURL or sourceMappingURL found. * parser/Parser.h: (JSC::Parser<LexerType>::parse): * parser/SourceProvider.h: (JSC::SourceProvider::url): (JSC::SourceProvider::sourceURL): (JSC::SourceProvider::sourceMappingURL): (JSC::SourceProvider::setSourceURL): (JSC::SourceProvider::setSourceMappingURL): After parsing a script, update the Source Provider with the value of directives that may have been found in the script. Source/WebInspectorUI: * UserInterface/Test/InspectorProtocol.js: (InspectorProtocol._sendMessage): (InspectorProtocol.dispatchMessageFromBackend): This is only used for tests, so avoid console.log and just dump directly to the system console. LayoutTests: * inspector/debugger/sourceURLs-expected.txt: Added. * inspector/debugger/sourceURLs.html: Added. sourceURL and sourceMappingURL detection. Canonical link: https://commits.webkit.org/168521@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-20 20:48:49 +00:00
-- Running test case: TestExpressionsForSourceMappingURL
Found Script with sourceMappingURL 'test1.js'
Found Script with sourceMappingURL 'test2.js'
Found Script with sourceMappingURL 'test3.js'
Found Script with sourceMappingURL 'test4.js'
Found Script with sourceMappingURL 'test5.js'
Found Script with sourceMappingURL 'test6.js'
Found Script with sourceMappingURL 'test7.js'
Found Script with sourceMappingURL 'test8.js'
Found Script with sourceMappingURL 'second.js'
Web Inspector: JavaScriptCore should parse sourceURL and sourceMappingURL directives https://bugs.webkit.org/show_bug.cgi?id=150096 Reviewed by Geoffrey Garen. Source/JavaScriptCore: * inspector/ContentSearchUtilities.cpp: (Inspector::ContentSearchUtilities::scriptCommentPattern): Deleted. (Inspector::ContentSearchUtilities::findScriptSourceURL): Deleted. (Inspector::ContentSearchUtilities::findScriptSourceMapURL): Deleted. * inspector/ContentSearchUtilities.h: No longer need to search script content. * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchDidParseSource): Carry over the sourceURL and sourceMappingURL from the SourceProvider. * inspector/agents/InspectorDebuggerAgent.cpp: (Inspector::InspectorDebuggerAgent::sourceMapURLForScript): (Inspector::InspectorDebuggerAgent::didParseSource): No longer do content searching. * parser/Lexer.cpp: (JSC::Lexer<T>::setCode): (JSC::Lexer<T>::skipWhitespace): (JSC::Lexer<T>::parseCommentDirective): (JSC::Lexer<T>::parseCommentDirectiveValue): (JSC::Lexer<T>::consume): (JSC::Lexer<T>::lex): * parser/Lexer.h: (JSC::Lexer::sourceURL): (JSC::Lexer::sourceMappingURL): (JSC::Lexer::sourceProvider): Deleted. Give lexer the ability to detect script comment directives. This just consumes characters in single line comments and ultimately sets the sourceURL or sourceMappingURL found. * parser/Parser.h: (JSC::Parser<LexerType>::parse): * parser/SourceProvider.h: (JSC::SourceProvider::url): (JSC::SourceProvider::sourceURL): (JSC::SourceProvider::sourceMappingURL): (JSC::SourceProvider::setSourceURL): (JSC::SourceProvider::setSourceMappingURL): After parsing a script, update the Source Provider with the value of directives that may have been found in the script. Source/WebInspectorUI: * UserInterface/Test/InspectorProtocol.js: (InspectorProtocol._sendMessage): (InspectorProtocol.dispatchMessageFromBackend): This is only used for tests, so avoid console.log and just dump directly to the system console. LayoutTests: * inspector/debugger/sourceURLs-expected.txt: Added. * inspector/debugger/sourceURLs.html: Added. sourceURL and sourceMappingURL detection. Canonical link: https://commits.webkit.org/168521@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-20 20:48:49 +00:00