mediawiki.Uri: Fix host example and change foo.com to example.com
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 23 Dec 2013 21:38:01 +0000 (21:38 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 23 Dec 2013 21:38:01 +0000 (21:38 +0000)
commit3bafdea875e4e1316555f247f4c48010b2330f55
treefea516403a802f372bd0b419b90d1aef20b870da
parent898aff7d3f3b7aebbafc861399a1e211bc9ce60b
mediawiki.Uri: Fix host example and change foo.com to example.com

* The example changed host from foo.com to www.foo.com, but
  the .toString() comment showing the expected value was wrong
  as it implied setting .host doesn't work, but it does.

* Update examples and tests to use example.org or example.com
  instead of foo, test, or google.com etc.

Follows-up a94417720248dd3 which accidentally broke the example,
when fixing the .setAttr() -> .attr() mistake.

Change-Id: Ifeaf713a8f1db8758b01aa84061b49316ca5d577
resources/mediawiki/mediawiki.Uri.js
tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js