@@ -10,9 +10,9 @@ This directory contains modules used to test the Node.js implementation.
1010* [ DNS module] ( #dns-module )
1111* [ Duplex pair helper] ( #duplex-pair-helper )
1212* [ Fixtures module] ( #fixtures-module )
13+ * [ HTTP2 module] ( #http2-module )
1314* [ Internet module] ( #internet-module )
1415* [ WPT module] ( #wpt-module )
15- * [ HTTP2 module] ( #http2-module )
1616
1717## Benchmark Module
1818
@@ -509,49 +509,6 @@ Returns the result of
509509Returns the result of
510510` fs.readFileSync(path.join(fixtures.fixturesDir, 'keys', arg), 'enc') ` .
511511
512- ## Internet Module
513-
514- The ` common/internet ` module provides utilities for working with
515- internet-related tests.
516-
517- ### internet.addresses
518-
519- * [ < ; Object>]
520- * ` INET_HOST ` [ < ; String>] A generic host that has registered common
521- DNS records, supports both IPv4 and IPv6, and provides basic HTTP/HTTPS
522- services
523- * ` INET4_HOST ` [ < ; String>] A host that provides IPv4 services
524- * ` INET6_HOST ` [ < ; String>] A host that provides IPv6 services
525- * ` INET4_IP ` [ < ; String>] An accessible IPv4 IP, defaults to the
526- Google Public DNS IPv4 address
527- * ` INET6_IP ` [ < ; String>] An accessible IPv6 IP, defaults to the
528- Google Public DNS IPv6 address
529- * ` INVALID_HOST ` [ < ; String>] An invalid host that cannot be resolved
530- * ` MX_HOST ` [ < ; String>] A host with MX records registered
531- * ` SRV_HOST ` [ < ; String>] A host with SRV records registered
532- * ` PTR_HOST ` [ < ; String>] A host with PTR records registered
533- * ` NAPTR_HOST ` [ < ; String>] A host with NAPTR records registered
534- * ` SOA_HOST ` [ < ; String>] A host with SOA records registered
535- * ` CNAME_HOST ` [ < ; String>] A host with CNAME records registered
536- * ` NS_HOST ` [ < ; String>] A host with NS records registered
537- * ` TXT_HOST ` [ < ; String>] A host with TXT records registered
538- * ` DNS4_SERVER ` [ < ; String>] An accessible IPv4 DNS server
539- * ` DNS6_SERVER ` [ < ; String>] An accessible IPv6 DNS server
540-
541- A set of addresses for internet-related tests. All properties are configurable
542- via ` NODE_TEST_* ` environment variables. For example, to configure
543- ` internet.addresses.INET_HOST ` , set the environment
544- vairable ` NODE_TEST_INET_HOST ` to a specified host.
545-
546- ## WPT Module
547-
548- The wpt.js module is a port of parts of
549- [ W3C testharness.js] ( https://github.com/w3c/testharness.js ) for testing the
550- Node.js
551- [ WHATWG URL API] ( https://nodejs.org/api/url.html#url_the_whatwg_url_api )
552- implementation with tests from
553- [ W3C Web Platform Tests] ( https://github.com/w3c/web-platform-tests ) .
554-
555512## HTTP/2 Module
556513
557514The http2.js module provides a handful of utilities for creating mock HTTP/2
@@ -663,6 +620,49 @@ upon initial establishment of a connection.
663620socket .write (http2 .kClientMagic );
664621```
665622
623+ ## Internet Module
624+
625+ The ` common/internet ` module provides utilities for working with
626+ internet-related tests.
627+
628+ ### internet.addresses
629+
630+ * [ < ; Object>]
631+ * ` INET_HOST ` [ < ; String>] A generic host that has registered common
632+ DNS records, supports both IPv4 and IPv6, and provides basic HTTP/HTTPS
633+ services
634+ * ` INET4_HOST ` [ < ; String>] A host that provides IPv4 services
635+ * ` INET6_HOST ` [ < ; String>] A host that provides IPv6 services
636+ * ` INET4_IP ` [ < ; String>] An accessible IPv4 IP, defaults to the
637+ Google Public DNS IPv4 address
638+ * ` INET6_IP ` [ < ; String>] An accessible IPv6 IP, defaults to the
639+ Google Public DNS IPv6 address
640+ * ` INVALID_HOST ` [ < ; String>] An invalid host that cannot be resolved
641+ * ` MX_HOST ` [ < ; String>] A host with MX records registered
642+ * ` SRV_HOST ` [ < ; String>] A host with SRV records registered
643+ * ` PTR_HOST ` [ < ; String>] A host with PTR records registered
644+ * ` NAPTR_HOST ` [ < ; String>] A host with NAPTR records registered
645+ * ` SOA_HOST ` [ < ; String>] A host with SOA records registered
646+ * ` CNAME_HOST ` [ < ; String>] A host with CNAME records registered
647+ * ` NS_HOST ` [ < ; String>] A host with NS records registered
648+ * ` TXT_HOST ` [ < ; String>] A host with TXT records registered
649+ * ` DNS4_SERVER ` [ < ; String>] An accessible IPv4 DNS server
650+ * ` DNS6_SERVER ` [ < ; String>] An accessible IPv6 DNS server
651+
652+ A set of addresses for internet-related tests. All properties are configurable
653+ via ` NODE_TEST_* ` environment variables. For example, to configure
654+ ` internet.addresses.INET_HOST ` , set the environment
655+ vairable ` NODE_TEST_INET_HOST ` to a specified host.
656+
657+ ## WPT Module
658+
659+ The wpt.js module is a port of parts of
660+ [ W3C testharness.js] ( https://github.com/w3c/testharness.js ) for testing the
661+ Node.js
662+ [ WHATWG URL API] ( https://nodejs.org/api/url.html#url_the_whatwg_url_api )
663+ implementation with tests from
664+ [ W3C Web Platform Tests] ( https://github.com/w3c/web-platform-tests ) .
665+
666666
667667[ < ; Array>] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
668668[ < ; ArrayBufferView[ ;] ; >] : https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView
0 commit comments