@@ -10,9 +10,9 @@ This directory contains modules used to test the Node.js implementation.
10
10
* [ DNS module] ( #dns-module )
11
11
* [ Duplex pair helper] ( #duplex-pair-helper )
12
12
* [ Fixtures module] ( #fixtures-module )
13
+ * [ HTTP2 module] ( #http2-module )
13
14
* [ Internet module] ( #internet-module )
14
15
* [ WPT module] ( #wpt-module )
15
- * [ HTTP2 module] ( #http2-module )
16
16
17
17
## Benchmark Module
18
18
@@ -523,49 +523,6 @@ Returns the result of
523
523
Returns the result of
524
524
` fs.readFileSync(path.join(fixtures.fixturesDir, 'keys', arg), 'enc') ` .
525
525
526
- ## Internet Module
527
-
528
- The ` common/internet ` module provides utilities for working with
529
- internet-related tests.
530
-
531
- ### internet.addresses
532
-
533
- * [ < ; Object>]
534
- * ` INET_HOST ` [ < ; String>] A generic host that has registered common
535
- DNS records, supports both IPv4 and IPv6, and provides basic HTTP/HTTPS
536
- services
537
- * ` INET4_HOST ` [ < ; String>] A host that provides IPv4 services
538
- * ` INET6_HOST ` [ < ; String>] A host that provides IPv6 services
539
- * ` INET4_IP ` [ < ; String>] An accessible IPv4 IP, defaults to the
540
- Google Public DNS IPv4 address
541
- * ` INET6_IP ` [ < ; String>] An accessible IPv6 IP, defaults to the
542
- Google Public DNS IPv6 address
543
- * ` INVALID_HOST ` [ < ; String>] An invalid host that cannot be resolved
544
- * ` MX_HOST ` [ < ; String>] A host with MX records registered
545
- * ` SRV_HOST ` [ < ; String>] A host with SRV records registered
546
- * ` PTR_HOST ` [ < ; String>] A host with PTR records registered
547
- * ` NAPTR_HOST ` [ < ; String>] A host with NAPTR records registered
548
- * ` SOA_HOST ` [ < ; String>] A host with SOA records registered
549
- * ` CNAME_HOST ` [ < ; String>] A host with CNAME records registered
550
- * ` NS_HOST ` [ < ; String>] A host with NS records registered
551
- * ` TXT_HOST ` [ < ; String>] A host with TXT records registered
552
- * ` DNS4_SERVER ` [ < ; String>] An accessible IPv4 DNS server
553
- * ` DNS6_SERVER ` [ < ; String>] An accessible IPv6 DNS server
554
-
555
- A set of addresses for internet-related tests. All properties are configurable
556
- via ` NODE_TEST_* ` environment variables. For example, to configure
557
- ` internet.addresses.INET_HOST ` , set the environment
558
- vairable ` NODE_TEST_INET_HOST ` to a specified host.
559
-
560
- ## WPT Module
561
-
562
- The wpt.js module is a port of parts of
563
- [ W3C testharness.js] ( https://github.com/w3c/testharness.js ) for testing the
564
- Node.js
565
- [ WHATWG URL API] ( https://nodejs.org/api/url.html#url_the_whatwg_url_api )
566
- implementation with tests from
567
- [ W3C Web Platform Tests] ( https://github.com/w3c/web-platform-tests ) .
568
-
569
526
## HTTP/2 Module
570
527
571
528
The http2.js module provides a handful of utilities for creating mock HTTP/2
@@ -701,6 +658,49 @@ upon initial establishment of a connection.
701
658
socket .write (http2 .kClientMagic );
702
659
```
703
660
661
+ ## Internet Module
662
+
663
+ The ` common/internet ` module provides utilities for working with
664
+ internet-related tests.
665
+
666
+ ### internet.addresses
667
+
668
+ * [ < ; Object>]
669
+ * ` INET_HOST ` [ < ; String>] A generic host that has registered common
670
+ DNS records, supports both IPv4 and IPv6, and provides basic HTTP/HTTPS
671
+ services
672
+ * ` INET4_HOST ` [ < ; String>] A host that provides IPv4 services
673
+ * ` INET6_HOST ` [ < ; String>] A host that provides IPv6 services
674
+ * ` INET4_IP ` [ < ; String>] An accessible IPv4 IP, defaults to the
675
+ Google Public DNS IPv4 address
676
+ * ` INET6_IP ` [ < ; String>] An accessible IPv6 IP, defaults to the
677
+ Google Public DNS IPv6 address
678
+ * ` INVALID_HOST ` [ < ; String>] An invalid host that cannot be resolved
679
+ * ` MX_HOST ` [ < ; String>] A host with MX records registered
680
+ * ` SRV_HOST ` [ < ; String>] A host with SRV records registered
681
+ * ` PTR_HOST ` [ < ; String>] A host with PTR records registered
682
+ * ` NAPTR_HOST ` [ < ; String>] A host with NAPTR records registered
683
+ * ` SOA_HOST ` [ < ; String>] A host with SOA records registered
684
+ * ` CNAME_HOST ` [ < ; String>] A host with CNAME records registered
685
+ * ` NS_HOST ` [ < ; String>] A host with NS records registered
686
+ * ` TXT_HOST ` [ < ; String>] A host with TXT records registered
687
+ * ` DNS4_SERVER ` [ < ; String>] An accessible IPv4 DNS server
688
+ * ` DNS6_SERVER ` [ < ; String>] An accessible IPv6 DNS server
689
+
690
+ A set of addresses for internet-related tests. All properties are configurable
691
+ via ` NODE_TEST_* ` environment variables. For example, to configure
692
+ ` internet.addresses.INET_HOST ` , set the environment
693
+ vairable ` NODE_TEST_INET_HOST ` to a specified host.
694
+
695
+ ## WPT Module
696
+
697
+ The wpt.js module is a port of parts of
698
+ [ W3C testharness.js] ( https://github.com/w3c/testharness.js ) for testing the
699
+ Node.js
700
+ [ WHATWG URL API] ( https://nodejs.org/api/url.html#url_the_whatwg_url_api )
701
+ implementation with tests from
702
+ [ W3C Web Platform Tests] ( https://github.com/w3c/web-platform-tests ) .
703
+
704
704
705
705
[ < ; Array>] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
706
706
[ < ; ArrayBufferView[ ;] ; >] : https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView
0 commit comments