https://bugzilla.wikimedia.org/show_bug.cgi?id=38128

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Krinkle <[email protected]> ---
@Ed Feature tests:

* Engine is ECMAScript5 compliant.

  Avoid testing things like Object.create or Function#bind which can easily
  be polyfills (and asserting the difference between native and polifill can
  be tricky). Assert that strict mode works. 

  supportsStrictMode = ( function () {
      "use strict";
      function x() {
          return this;
      }
      return x() === undefined;
  }() );

  Perhaps you could even take out x() and just return this === undefined.
  Though that appears to work and seems more straight forward, I see all
  patterns out there use a function inside. Let's figure out if its needed
  and only do it if needed.

* Browser supports ContentEditable.

  DOMElements have all supported properties defined in their default state.
  e.g. all input fields have property 'placeholder' (empty string as value
  by default).
  supportsPlaceholder = 'placeholder' in document.createElement( 'input' );

  For content editable we don't need to create an element, we can just
  use document.body as test target since it works body as well. 

  supportsContentEditable = 'contentEditable' in document.body;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to