WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
178614
Web Inspector: Support `async test() { ... }` in Inspector Test Suites
https://bugs.webkit.org/show_bug.cgi?id=178614
Summary
Web Inspector: Support `async test() { ... }` in Inspector Test Suites
Joseph Pecoraro
Reported
2017-10-20 21:32:39 PDT
Support `async test() { ... }` in Inspector Test Suites So we can use `await` in test code.
Attachments
[PATCH] Proposed Fix
(26.76 KB, patch)
2017-10-20 21:46 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(26.77 KB, patch)
2017-10-20 21:49 PDT
,
Joseph Pecoraro
hi
: review+
Details
Formatted Diff
Diff
[PATCH] For Landing
(26.78 KB, patch)
2017-10-20 23:16 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2017-10-20 21:40:57 PDT
(In reply to Joseph Pecoraro from
comment #0
)
> Support `async test() { ... }` in Inspector Test Suites > > So we can use `await` in test code.
😍
Joseph Pecoraro
Comment 2
2017-10-20 21:46:48 PDT
Created
attachment 324485
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2017-10-20 21:49:29 PDT
Created
attachment 324486
[details]
[PATCH] Proposed Fix
Devin Rousso
Comment 4
2017-10-20 22:05:13 PDT
Comment on
attachment 324486
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=324486&action=review
r=me. One typo. Also waiting on the tests to make sure it's all good :)
> LayoutTests/inspector/unit-tests/async-test-suite.html:445 > + description: "Check that an async suite with async test functions that throws with a runtime erorr will reject",
Typo. "erorr" -> "error"
> Source/WebInspectorUI/UserInterface/Test/TestSuite.js:153 > + if (testcase.test.toString().startsWith("async "))
This feels hacky, but I'm not sure if there's any other way around it :|
Joseph Pecoraro
Comment 5
2017-10-20 23:16:54 PDT
Created
attachment 324490
[details]
[PATCH] For Landing
Joseph Pecoraro
Comment 6
2017-10-20 23:17:20 PDT
Comment on
attachment 324486
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=324486&action=review
>> Source/WebInspectorUI/UserInterface/Test/TestSuite.js:153 >> + if (testcase.test.toString().startsWith("async ")) > > This feels hacky, but I'm not sure if there's any other way around it :|
Switched to: if (testcase.test[Symbol.toStringTag] === "AsyncFunction")
WebKit Commit Bot
Comment 7
2017-10-20 23:52:50 PDT
Comment on
attachment 324490
[details]
[PATCH] For Landing Clearing flags on attachment: 324490 Committed
r223809
: <
https://trac.webkit.org/changeset/223809
>
Radar WebKit Bug Importer
Comment 8
2017-11-15 13:01:58 PST
<
rdar://problem/35568648
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug