Re: [html] First batch of i18n tests: translate mode (#252)

This is bad style; you should put the code inside the test where possible. In this case

test(function() {
  assert_true(document.getElementById('box'));
  //Note this code isn't run if the assert fails
  box.style.backgroundColor = '#00FF00';
  box.style.color = 'white';
  box.innerHTML = 'Pass';
  box.style.height = '100px';
  box.style.width = '100px';
});

Similar comments presumably apply to other tests.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/252#discussion_r5220744

Received on Tuesday, 16 July 2013 16:44:50 UTC