| <!-- | |
| Copyright 2020 The Chromium Authors | |
| Use of this source code is governed by a BSD-style license that can be | |
| found in the LICENSE file. | |
| --> | |
| <h1>Memory Panel (Heap profiler) Test</h1> | |
| <script> | |
| function onChange(e) { | |
| console.log('onChange ' + e.matches); | |
| } | |
| var m = window.matchMedia('(min-width: 1400px)'); | |
| m.addListener(onChange); | |
| m = window.matchMedia('(min-height: 1800px)'); | |
| m.addListener(onChange); | |
| console.log('Created 2 MediaQueryList elements'); | |
| </script> |