parent
934b425cc8
commit
3d01acbf7b
|
@ -231,7 +231,7 @@ code-example(format="" language="html" escape="html").
|
|||
If it had depended on Angular, we’d still be staring at the Jasmine “big-time fail” screen:
|
||||
|
||||
**那是我们幸运!**`Hero`接口并不依赖Angular。
|
||||
如果它依赖于Angular,我们就得面对Jasmine的“大败局”界面了:
|
||||
如果它依赖于Angular,我们就得面对Jasmine的“大败局”界面了(译注:因为在运行任何测试之前就出现了错误,所以没有任何测试会执行,参见[运行,并失败](run-and-fail)):
|
||||
|
||||
figure.image-display
|
||||
img(src='/resources/images/devguide/testing-an-angular-pipe/big-time-fail-screen.png'
|
||||
|
|
|
@ -63,7 +63,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
|||
|
||||
function isPureEnglish(text) {
|
||||
// accept — , quotes, ® and façade too.
|
||||
return /^[\1-\255—’“”ç®]*$/.test(text);
|
||||
return /^[\1-\255—’“”ç®…]*$/.test(text);
|
||||
}
|
||||
|
||||
function attributesToString(node) {
|
||||
|
|
Loading…
Reference in New Issue