Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

1.3 KiB
Raw Blame History

id, title, challengeType, videoUrl, forumTopicId, localeTitle
id title challengeType videoUrl forumTopicId localeTitle
bad87fed1348bd9aedf08833 Delete HTML Elements 0 https://scrimba.com/p/pVMPUv/ckK73C9 17559 删除 HTML 元素

Description

手机的屏幕空间是有限的。 让我们删除不必要的元素开始设计我们的CatPhotoApp。

Instructions

任务:删除h1元素以简化视图。

Tests

tests:
  - text: '删除<code>h1</code>元素。'
    testString: assert(!code.match(/<h1>/gi) && !code.match(/<\/h1>/gi));
  - text: '保留<code>h2</code>元素。'
    testString: assert(code.match(/<h2>[\w\W]*<\/h2>/gi));
  - text: '保留<code>p</code>元素。'
    testString: assert(code.match(/<p>[\w\W]*<\/p>/gi));

Challenge Seed

<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>在大家心目中,猫是慵懒和可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>

Solution