Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(dotnet): translate Javascript words to csharp (#6321)

Darío Kondratiukd9015b99d023
diff --git a/utils/doclint/xmlDocumentation.js b/utils/doclint/xmlDocumentation.js
index 64bc6e62c5..70387d5e22 100644
--- a/utils/doclint/xmlDocumentation.js
+++ b/utils/doclint/xmlDocumentation.js
@@ -123,6 +123,9 @@ function _wrapAndEscape(node, maxColumns = 0) {
});
text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);
text = text.replace(/`([^`]*)`/g, (match, code) => `<c>${code.replace('<', '&lt;').replace('>', '&gt;')}</c>`);
+ text = text.replace(/ITimeoutError/, 'TimeoutException');
+ text = text.replace(/Promise/, 'Task');
+
const words = text.split(' ');
let line = '';
for (let i = 0; i < words.length; i++) {