Replace <link rel="import"> with <import>

This CL is just a search-and-replace.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/694423002
This commit is contained in:
Adam Barth 2014-11-03 12:34:57 -08:00
parent 5473994cea
commit 175f8fdfe8
76 changed files with 127 additions and 127 deletions

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<body>
<div id="container"></div>
<script>

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<body>
<div id="container"></div>
<script>

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="resources/document-register-fuzz.sky" as="fuzzer" />
<import src="../resources/dump-as-text.sky" />
<import src="resources/document-register-fuzz.sky" as="fuzzer" />
<body>
<div id="container"></div>
Fuzzing document.registerElement() through getters. PASS unless crash.

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="resources/document-register-fuzz.sky" as="fuzzer" />
<import src="../resources/dump-as-text.sky" />
<import src="resources/document-register-fuzz.sky" as="fuzzer" />
<body>
<div id="container"></div>
Fuzzing document.registerElement() through getters. PASS uless crash.

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="resources/document-register-fuzz.sky" as="fuzzer" />
<import src="../resources/dump-as-text.sky" />
<import src="resources/document-register-fuzz.sky" as="fuzzer" />
<body>
<div id="container"></div>
Fuzzing document.registerElement() through getters. PASS unless crash.

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<import src="../resources/dump-as-text.sky" />
<body>
Tests unresolved element not leaking if never resolved.
<div id="container"></div>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<import src="../resources/dump-as-text.sky" />
<body>
<section id="a" is="x-a"></section>
Tests that type extension of a element whose DOM interface is HTMLElement does not assert

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<import src="../resources/dump-as-text.sky" />
<body>
<script>
document.registerElement("x-foo", { prototype: Object.create(HTMLElement.prototype, { createdCallback: { value: function () { this.innerHTML = "<x-foo>Hello</x-foo>"; } } }) });

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="../resources/chai.sky" />
<import src="../resources/dump-as-text.sky" />
<import src="../resources/chai.sky" />
<body>
This test ensures that is visible in following script block.
<script>

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="../resources/chai.sky" />
<import src="../resources/dump-as-text.sky" />
<import src="../resources/chai.sky" />
<body>
This test ensures that the lifecycle callback of a parser-made element is visible in following script block.
<script>

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="/sky/framework/inspector/css-agent.sky" as="CSSAgent" />
<import src="../resources/chai.sky" />
<import src="/sky/framework/inspector/css-agent.sky" as="CSSAgent" />
<script>
var fakeDOMAgent = {
getNodeForId: function(id) {

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="/sky/framework/inspector/dom-agent.sky" as="DOMAgent" />
<import src="/sky/framework/inspector/dom-agent.sky" as="DOMAgent" />
<div></div>
<script>
// FIXME: This shows a bug in our DOM mutation handling, we should

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="/sky/framework/inspector/dom-agent.sky" as="DOMAgent" />
<import src="../resources/chai.sky" />
<import src="/sky/framework/inspector/dom-agent.sky" as="DOMAgent" />
<div><div></div></div>
<script>
// setTimeout to flush pending DOM modifications and measure

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="import" href="../resources/dump-as-render-tree.sky" />
<import src="../resources/dump-as-render-tree.sky" />
<title>Adam Barth</title>
<style>
html {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<script>
describe("Attribute collection", function() {
var div;

View File

@ -1,6 +1,6 @@
<CamelCase>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('Element tag names', function() {
it('should have various casing', function() {

View File

@ -1,6 +1,6 @@
<test>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('createElementNS tests from mozilla, attached to webkit bug 16833', function() {
it('should behave like mozilla', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('DOMImplementation', function() {
it('should let you create a document', function() {

View File

@ -1,4 +1,4 @@
<foo>
<link rel="import" href="../resources/dump-as-render-tree.sky" />
<import src="../resources/dump-as-render-tree.sky" />
Hello World!
</foo>

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<div id="tests">
<div id="id1">
<div class="class2"></div>

View File

@ -1,6 +1,6 @@
<sky>
<scroller style="overflow: scroll; height: 400px;">
<link rel="import" href="../resources/dump-as-render-tree.sky" />
<import src="../resources/dump-as-render-tree.sky" />
<style>
div { height: 100px; }
</style>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<import src="../resources/dump-as-text.sky" />
<style>
#id1 { order: 1; }
.class2 { order: 2; }

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<style>
#sandbox { color: red; }
.blue { color: blue; }

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<import src="../resources/dump-as-text.sky" />
<body>
This is a dump-as-text test.
</body>

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe.only('This suite', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('This suite', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
it('should pass the callback and observer arguments', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('Transient registrations', function() {
it('should be cleared even without delivery', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
window.jsTestIsAsync = true;

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver cross document moves', function() {
it('should handle basic observation', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
it('should deliver in order of creation', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver.disconnect', function() {
it('should cancel pending delivery', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<script>
describe('DocumentFragments should remove all children of the fragment before moving children, ', function() {
var mutations;

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
it('should not interrupt delivery order on getting mutations during delivery', function(done) {

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<import src="../resources/dump-as-text.sky" />
<body id="body">
<script>
function mutationCallback(mutations, observer) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
var observer = new MutationObserver(function(mutations) { });

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationRecord', function() {
it('should be exposed on window but not constructable', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('Non-relevant properties on mutation records should be null, except for NodeLists, which should be empty', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver.observe on attributes', function() {
it('should handle basic aspects of attribute observation', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<body id="body">
<script>
document.body = document.getElementById("body");

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver.observe on childList', function() {
it('should handle basic observation', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver observe', function() {
it('should throw on invalid input', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver.observe', function() {
it('should observe attributes', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('Test MutationObserver.observe', function() {
it('should respect character data options', function() {

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver.observe on a subtree', function() {
it('should handle basic aspects of subtree observation', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver wrappers', function() {
it('should survive GC for passing into the callback even if JS has lost references and the only remaining observations are transient.', function(done) {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
it('should not invoke callbacks when appending a script', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<div id="range"></div>
<script>
describe('MutationObservers', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
describe('MutationObserver.takeRecords', function() {
it('should allow taking records synchronously or getting a notification', function(done) {

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<import src="../resources/dump-as-text.sky" />
<body>
<
<!

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
THIS TEST SHOULD PASS
(control test for success)

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky" />
<import src="../resources/dump-as-markup.sky" />
<body>
THIS TEST SHOULD PASS
(control test for success)

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<diva>1</diva>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<diva>1</diva>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<div>aaa'bbb</div>
<div>&lt;</div>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky" />
<import src="../resources/dump-as-markup.sky" />
<body>
<div>aaa&apos;bbb</div>
<div>&lt;</div>

View File

@ -1,6 +1,6 @@
&lt;!DOCTYPE HTML&gt;
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
A &lt;!DOCTYPE HTMLAGAIN&gt;

View File

@ -1,6 +1,6 @@
<!DOCTYPE HTML>
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
A <!DOCTYPE HTMLAGAIN>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<div>
</div>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky" />
<import src="../resources/dump-as-markup.sky" />
<body>
<div></div>
<div>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky" />
<import src="../resources/dump-as-markup.sky" />
<body>
<div><3E></div>
<div><3E><><EFBFBD><EFBFBD><EFBFBD></div>

View File

@ -13,7 +13,7 @@ SOURCE: http://127.0.0.1:8000/parser/script.sky:38
ERROR: Uncaught SyntaxError: Unexpected token }
SOURCE: http://127.0.0.1:8000/parser/script.sky:43
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<script>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<script>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<a>1</a>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<a>1</a>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<style>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<style>

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<p></p> a

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<import src="../resources/dump-as-markup.sky"></import>
<body>
<p/> a </p>

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="/mojo/public/sky/buffer.sky" as="buffer" />
<import src="../resources/dump-as-text.sky" />
<import src="/mojo/public/sky/buffer.sky" as="buffer" />
<div id="result">FAIL</div>
<script>
document.getElementById("result").textContent =

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="/mojo/public/sky/codec.sky" as="codec" />
<import src="../resources/dump-as-text.sky" />
<import src="/mojo/public/sky/codec.sky" as="codec" />
<div id="result">FAIL</div>
<script>
document.getElementById("result").textContent =

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="/mojo/public/sky/core.sky" as="core" />
<import src="../resources/dump-as-text.sky" />
<import src="/mojo/public/sky/core.sky" as="core" />
<div id="result">FAIL</div>
<script>
document.getElementById("result").textContent =

View File

@ -1,10 +1,10 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="/mojo/public/sky/core.sky" as="core" />
<link rel="import" href="/mojo/public/sky/connection.sky" as="connection" />
<link rel="import" href="/mojo/services/public/interfaces/network/network_service.mojom.sky" as="net" />
<link rel="import" href="/mojo/services/public/interfaces/network/url_loader.mojom.sky" as="loader" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<import src="/mojo/public/sky/core.sky" as="core" />
<import src="/mojo/public/sky/connection.sky" as="connection" />
<import src="/mojo/services/public/interfaces/network/network_service.mojom.sky" as="net" />
<import src="/mojo/services/public/interfaces/network/url_loader.mojom.sky" as="loader" />
<script>
describe('Mojo network_service', function() {
this.enableTimeouts(false);

View File

@ -1,7 +1,7 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="/sky/framework/xmlhttprequest.sky" as="XMLHttpRequest" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<import src="/sky/framework/xmlhttprequest.sky" as="XMLHttpRequest" />
<script>
describe('XMLHttpRequest', function() {
this.enableTimeouts(false);

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<foo />
<script>
describe('Border', function() {

View File

@ -1,6 +1,6 @@
<html>
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<foo />
<script>