Subramanya Sastry has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/401514 )
Change subject: Linter: Fix mocha tests
......................................................................
Linter: Fix mocha tests
Change-Id: Ia9066a9b6eb2982ea21b46f5be88a24a4fc43b55
---
M tests/mocha/linter.js
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid
refs/changes/14/401514/1
diff --git a/tests/mocha/linter.js b/tests/mocha/linter.js
index afe4183..c90047a 100644
--- a/tests/mocha/linter.js
+++ b/tests/mocha/linter.js
@@ -792,7 +792,7 @@
});
});
it('should ignore unclosed small tags in tables', function() {
- noLintsOfThisType('{|\n|<small>a\n|<small>b\n|}',
"multiple-unclosed-formatting-tags");
+ return
noLintsOfThisType('{|\n|<small>a\n|<small>b\n|}',
"multiple-unclosed-formatting-tags");
});
it('should ignore unclosed small tags in tables but detect
those outside it', function() {
return
parseWT('<small>x\n{|\n|<small>a\n|<small>b\n|}\n<small>y').then(function(result)
{
@@ -813,10 +813,10 @@
});
});
it("should not flag Tidy's smart auto-fixup of paired unclosed
formatting tags where Tidy won't do it", function() {
- noLintsOfThisType('<b>foo <b>\n<code>foo <span>x</span>
<!--comment--><code>', "multiple-unclosed-formatting-tags");
+ return noLintsOfThisType('<b>foo <b>\n<code>foo
<span>x</span> <!--comment--><code>', "multiple-unclosed-formatting-tags");
});
it("should not flag Tidy's smart auto-fixup of paired unclosed
tags for non-formatting tags", function() {
- noLintsOfThisType('<span>foo<span>\n<div>foo
<span>x</span> bar<div>', "multiple-unclosed-formatting-tags");
+ return noLintsOfThisType('<span>foo<span>\n<div>foo
<span>x</span> bar<div>', "multiple-unclosed-formatting-tags");
});
});
describe('UNCLOSED WIKITEXT I/B tags in headings', function() {
--
To view, visit https://gerrit.wikimedia.org/r/401514
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia9066a9b6eb2982ea21b46f5be88a24a4fc43b55
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits