summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webrtc/tools/.eslintrc.js
blob: 321f8e9a25499ea1073f0746578bce0c006eb62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
module.exports = {
  rules: {
    'no-undef': 1,
    'no-unused-vars': 0
  },
  plugins: [
    'html'
  ],
  env: {
    browser: true,
    es6: true
  },
  globals: {
    // testharness globals
    test: true,
    async_test: true,
    promise_test: true,
    IdlArray: true,
    assert_true: true,
    assert_false: true,
    assert_equals: true,
    assert_not_equals: true,
    assert_array_equals: true,
    assert_in_array: true,
    assert_unreached: true,
    assert_idl_attribute: true,
    assert_own_property: true,
    assert_greater_than: true,
    assert_less_than: true,
    assert_greater_than_equal: true,
    assert_less_than_equal: true,
    assert_approx_equals: true,


    // WebRTC globals
    RTCPeerConnection: true,
    RTCRtpSender: true,
    RTCRtpReceiver: true,
    RTCRtpTransceiver: true,
    RTCIceTransport: true,
    RTCDtlsTransport: true,
    RTCSctpTransport: true,
    RTCDataChannel: true,
    RTCCertificate: true,
    RTCDTMFSender: true,
    RTCError: true,
    RTCTrackEvent: true,
    RTCPeerConnectionIceEvent: true,
    RTCDTMFToneChangeEvent: true,
    RTCDataChannelEvent: true,
    RTCRtpContributingSource: true,
    RTCRtpSynchronizationSource: true,

    // dictionary-helper.js
    assert_unsigned_int_field: true,
    assert_int_field: true,
    assert_string_field: true,
    assert_number_field: true,
    assert_boolean_field: true,
    assert_array_field: true,
    assert_dict_field: true,
    assert_enum_field: true,

    assert_optional_unsigned_int_field: true,
    assert_optional_int_field: true,
    assert_optional_string_field: true,
    assert_optional_number_field: true,
    assert_optional_boolean_field: true,
    assert_optional_array_field: true,
    assert_optional_dict_field: true,
    assert_optional_enum_field: true,

    // identity-helper.sub.js
    parseAssertionResult: true,
    getIdpDomains: true,
    assert_rtcerror_rejection: true,
    hostString: true,

    // RTCConfiguration-helper.js
    config_test: true,

    // RTCDTMFSender-helper.js
    createDtmfSender: true,
    test_tone_change_events: true,
    getTransceiver: true,

    // RTCPeerConnection-helper.js
    countLine: true,
    countAudioLine: true,
    countVideoLine: true,
    countApplicationLine: true,
    similarMediaDescriptions: true,
    assert_is_session_description: true,
    isSimilarSessionDescription: true,
    assert_session_desc_equals: true,
    assert_session_desc_not_equals: true,
    generateOffer: true,
    generateAnswer: true,
    test_state_change_event: true,
    test_never_resolve: true,
    exchangeIceCandidates: true,
    exchangeOfferAnswer: true,
    createDataChannelPair: true,
    awaitMessage: true,
    blobToArrayBuffer: true,
    assert_equals_typed_array: true,
    generateMediaStreamTrack: true,
    getTrackFromUserMedia: true,
    getUserMediaTracksAndStreams: true,
    performOffer: true,
    Resolver: true,

    // RTCRtpCapabilities-helper.js
    validateRtpCapabilities: true,
    validateCodecCapability: true,
    validateHeaderExtensionCapability: true,

    // RTCRtpParameters-helper.js
    validateSenderRtpParameters: true,
    validateReceiverRtpParameters: true,
    validateRtpParameters: true,
    validateEncodingParameters: true,
    validateRtcpParameters: true,
    validateHeaderExtensionParameters: true,
    validateCodecParameters: true,

    // RTCStats-helper.js
    validateStatsReport: true,
    assert_stats_report_has_stats: true,
    findStatsFromReport: true,
    getRequiredStats: true,
    getStatsById: true,
    validateIdField: true,
    validateOptionalIdField: true,
    validateRtcStats: true,
    validateRtpStreamStats: true,
    validateCodecStats: true,
    validateReceivedRtpStreamStats: true,
    validateInboundRtpStreamStats: true,
    validateRemoteInboundRtpStreamStats: true,
    validateSentRtpStreamStats: true,
    validateOutboundRtpStreamStats: true,
    validateRemoteOutboundRtpStreamStats: true,
    validateContributingSourceStats: true,
    validatePeerConnectionStats: true,
    validateMediaStreamStats: true,
    validateMediaStreamTrackStats: true,
    validateDataChannelStats: true,
    validateTransportStats: true,
    validateIceCandidateStats: true,
    validateIceCandidatePairStats: true,
    validateCertificateStats: true,
  }
}