blob: 1e2d8f652aaad9da7d479f4a8f84af038627d1e3 [file] [log] [blame]
* Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
* @assertion
* @description
import "dart:html";
import "../../testharness.dart";
import "../../../Utils/expect.dart";
const String htmlEL2 = r'''
Test for <i><a href="rdar://problem/7215132">rdar://problem/7215132</a>,
<a href="">bug 29167</a>,
REGRESSION (r48064): loses scrollbars after coming out of edit mode</i>,
and <i><a href="rdar://problem/7314421">rdar://problem/7314421</a>,
<a href="">bug 30517</a>,
REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store</i>.
This tests that after setting 'overflow' on the document element to
'hidden' and back to 'visible', scrollbars appear as necessary.
<p id="result">FAIL: Test did not run to completion</p>
void main() {
document.body.appendHtml(htmlEL2, treeSanitizer: new NullTreeSanitizer()); = "hidden";
document.body.offsetTop;"overflow"); = "200%";
Expect.notEquals(document.documentElement.offsetWidth, window.innerWidth,
"Scrollbar did not appear after resetting 'overflow'");
document.getElementById("result").innerHtml = "PASS";