diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-09-11 09:59:03 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-10-07 19:33:22 -0500 |
commit | e54cb1c7e97ddca58977a8ee01a138ff57ba6f2c (patch) | |
tree | 164165750b109ae888ce9b55d785fad9ce748e50 /tests | |
parent | d71e1687953dca9787c3763928a88d7397081b94 (diff) | |
download | epiphany-e54cb1c7e97ddca58977a8ee01a138ff57ba6f2c.tar.gz |
Relicense to GPLv3+
To use GMP.
Because a few GPLv3+ files had already snuck in by mistake.
And because http://www.gnu.org/licenses/rms-why-gplv3.html
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ephy-bookmarks-test.c | 130 | ||||
-rw-r--r-- | tests/ephy-completion-model-test.c | 24 | ||||
-rw-r--r-- | tests/ephy-download-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-embed-shell-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-embed-utils-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-encodings-test.c | 24 | ||||
-rw-r--r-- | tests/ephy-file-helpers-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-history-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-location-entry-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-migration-test.c | 24 | ||||
-rw-r--r-- | tests/ephy-session-test.c | 25 | ||||
-rw-r--r-- | tests/ephy-shell-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-snapshot-service-test.c | 10 | ||||
-rw-r--r-- | tests/ephy-sqlite-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-string-test.c | 24 | ||||
-rw-r--r-- | tests/ephy-test-utils.c | 11 | ||||
-rw-r--r-- | tests/ephy-test-utils.h | 11 | ||||
-rw-r--r-- | tests/ephy-uri-helpers-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-web-app-utils-test.c | 26 | ||||
-rw-r--r-- | tests/ephy-web-view-test.c | 26 |
20 files changed, 346 insertions, 223 deletions
diff --git a/tests/ephy-bookmarks-test.c b/tests/ephy-bookmarks-test.c new file mode 100644 index 000000000..b4eb7e4b4 --- /dev/null +++ b/tests/ephy-bookmarks-test.c @@ -0,0 +1,130 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* + * Copyright © 2012 Igalia S.L. + * + * This file is part of Epiphany. + * + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "config.h" +#include "ephy-bookmarks.h" + +#include "ephy-debug.h" +#include "ephy-file-helpers.h" +#include "ephy-private.h" +#include "ephy-profile-utils.h" +#include "ephy-shell.h" + +const char *bookmarks_paths[] = { EPHY_BOOKMARKS_FILE, EPHY_BOOKMARKS_FILE_RDF }; + +static void +clear_bookmark_files (void) +{ + GFile *file; + char *path; + guint i; + + for (i = 0; i < G_N_ELEMENTS (bookmarks_paths); i++) { + path = g_build_filename (ephy_dot_dir (), + bookmarks_paths[i], + NULL); + file = g_file_new_for_path (path); + g_file_delete (file, NULL, NULL); + g_object_unref (file); + g_free (path); + } +} + +static void +test_ephy_bookmarks_create (void) +{ + EphyBookmarks *bookmarks; + + bookmarks = ephy_bookmarks_new (); + g_assert (bookmarks); + g_object_unref (bookmarks); + + clear_bookmark_files (); +} + +static void +test_ephy_bookmarks_add (void) +{ + EphyBookmarks *bookmarks; + EphyNode *node, *result; + + bookmarks = ephy_bookmarks_new (); + g_assert (bookmarks); + + node = ephy_bookmarks_add (bookmarks, "GNOME", "http://www.gnome.org"); + g_assert (node); + result = ephy_bookmarks_find_bookmark (bookmarks, "http://www.gnome.org"); + g_assert (node == result); + + g_object_unref (bookmarks); + + clear_bookmark_files (); +} + +static void +test_ephy_bookmarks_set_address (void) +{ + EphyBookmarks *bookmarks; + EphyNode *node; + + bookmarks = ephy_bookmarks_new (); + g_assert (bookmarks); + node = ephy_bookmarks_add (bookmarks, "GNOME", "http://www.gnome.org"); + g_assert (node); + ephy_bookmarks_set_address (bookmarks, node, "http://www.google.com"); + node = ephy_bookmarks_find_bookmark (bookmarks, "http://www.gnome.org"); + g_assert (node == NULL); + node = ephy_bookmarks_find_bookmark (bookmarks, "http://www.google.com"); + g_assert (node); + + g_object_unref (bookmarks); + clear_bookmark_files (); +} + +int +main (int argc, char *argv[]) +{ + gboolean ret; + + gtk_test_init (&argc, &argv); + ephy_debug_init (); + + if (!ephy_file_helpers_init (NULL, + EPHY_FILE_HELPERS_PRIVATE_PROFILE | EPHY_FILE_HELPERS_ENSURE_EXISTS, + NULL)) { + g_debug ("Something wrong happened with ephy_file_helpers_init()"); + return -1; + } + + _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_TEST); + + g_test_add_func ("/src/bookmarks/ephy-bookmarks/create", + test_ephy_bookmarks_create); + + g_test_add_func ("/src/bookmarks/ephy-bookmarks/add", + test_ephy_bookmarks_add); + + g_test_add_func ("/src/bookmarks/ephy-bookmarks/set_address", + test_ephy_bookmarks_set_address); + + ret = g_test_run (); + + return ret; +} diff --git a/tests/ephy-completion-model-test.c b/tests/ephy-completion-model-test.c index af4c24132..01d3ca593 100644 --- a/tests/ephy-completion-model-test.c +++ b/tests/ephy-completion-model-test.c @@ -1,19 +1,21 @@ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * Copyright © 2012 Igalia S.L. + * Copyright © 2012 Igalia S.L. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * This file is part of Epiphany. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-download-test.c b/tests/ephy-download-test.c index 560c03c28..51e5d68cf 100644 --- a/tests/ephy-download-test.c +++ b/tests/ephy-download-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-download-test.c - * This file is part of Epiphany + * Copyright © 2011 Igalia S.L. * - * Copyright © 2011 - Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-embed-shell-test.c b/tests/ephy-embed-shell-test.c index 19211b503..91134aa65 100644 --- a/tests/ephy-embed-shell-test.c +++ b/tests/ephy-embed-shell-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-embed-shell-test.c - * This file is part of Epiphany + * Copyright © 2012 Igalia S.L. * - * Copyright © 2012 - Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-embed-utils-test.c b/tests/ephy-embed-utils-test.c index 572fb9d54..934d4a527 100644 --- a/tests/ephy-embed-utils-test.c +++ b/tests/ephy-embed-utils-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-embed-utils-test.c - * This file is part of Epiphany + * Copyright © 2012 Igalia S.L. * - * Copyright © 2012 Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-encodings-test.c b/tests/ephy-encodings-test.c index 2e2d89885..105d0b0a0 100644 --- a/tests/ephy-encodings-test.c +++ b/tests/ephy-encodings-test.c @@ -1,19 +1,21 @@ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * Copyright © 2012 - Igalia S.L. + * Copyright © 2012 - Igalia S.L. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * This file is part of Epiphany. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-file-helpers-test.c b/tests/ephy-file-helpers-test.c index 7368b59bf..6b8c3d3c2 100644 --- a/tests/ephy-file-helpers-test.c +++ b/tests/ephy-file-helpers-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-file-helpers-test.c - * This file is part of Epiphany + * Copyright © 2012 Igalia S.L. * - * Copyright © 2012 - Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-history-test.c b/tests/ephy-history-test.c index ade796c0d..f16160b0d 100644 --- a/tests/ephy-history-test.c +++ b/tests/ephy-history-test.c @@ -1,23 +1,21 @@ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ -/* vim: set sw=2 ts=2 sts=2 et: */ /* - * ephy-sqlite-statement.c - * This file is part of Epiphany + * Copyright © 2010, 2011, 2012 Igalia S.L. * - * Copyright © 2010, 2011, 2012 Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-location-entry-test.c b/tests/ephy-location-entry-test.c index 5c87cb0bc..bcd6bebaa 100644 --- a/tests/ephy-location-entry-test.c +++ b/tests/ephy-location-entry-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-location-entry-test.c - * This file is part of Epiphany + * Copyright © 2008 Diego Escalante Urrelo * - * Copyright © 2008 - Diego Escalante Urrelo + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-migration-test.c b/tests/ephy-migration-test.c index 91c24cc87..04b318eb9 100644 --- a/tests/ephy-migration-test.c +++ b/tests/ephy-migration-test.c @@ -1,21 +1,21 @@ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-migration-test.c + * Copyright © 2012 Igalia S.L. * - * Copyright © 2012 - Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-session-test.c b/tests/ephy-session-test.c index b0c15f60b..7c99d0347 100644 --- a/tests/ephy-session-test.c +++ b/tests/ephy-session-test.c @@ -1,20 +1,21 @@ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set sw=2 ts=2 sts=2 et: */ /* - * Copyright © 2012 - Igalia S.L. + * Copyright © 2012 - Igalia S.L. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * This file is part of Epiphany. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-shell-test.c b/tests/ephy-shell-test.c index 4ccdbc436..7be334c28 100644 --- a/tests/ephy-shell-test.c +++ b/tests/ephy-shell-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-shell-test.c - * This file is part of Epiphany + * Copyright © 2012 - Igalia S.L. * - * Copyright © 2012 - Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-snapshot-service-test.c b/tests/ephy-snapshot-service-test.c index a442a38d5..310c370b1 100644 --- a/tests/ephy-snapshot-service-test.c +++ b/tests/ephy-snapshot-service-test.c @@ -2,12 +2,14 @@ /* * Copyright © 2012 Igalia S.L. * - * This program is free software; you can redistribute it and/or modify + * This file is part of Epiphany. + * + * Epiphany is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * Epiphany is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. diff --git a/tests/ephy-sqlite-test.c b/tests/ephy-sqlite-test.c index 8ca8a36ba..bd796733a 100644 --- a/tests/ephy-sqlite-test.c +++ b/tests/ephy-sqlite-test.c @@ -1,21 +1,21 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-sqlite-statement.c - * This file is part of Epiphany + * Copyright © 2011 Igalia S.L. * - * Copyright © 2011 Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-string-test.c b/tests/ephy-string-test.c index 619f7b7db..4ac879e92 100644 --- a/tests/ephy-string-test.c +++ b/tests/ephy-string-test.c @@ -1,19 +1,21 @@ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * Copyright © 2012 Igalia S.L. + * Copyright © 2012 Igalia S.L. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * This file is part of Epiphany. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-test-utils.c b/tests/ephy-test-utils.c index af6cbb40d..8cd77f4fa 100644 --- a/tests/ephy-test-utils.c +++ b/tests/ephy-test-utils.c @@ -1,14 +1,15 @@ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set sw=2 ts=2 sts=2 et: */ /* * Copyright © 2013 Igalia S.L. * - * This program is free software; you can redistribute it and/or modify + * This file is part of Epiphany. + * + * Epiphany is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * Epiphany is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. diff --git a/tests/ephy-test-utils.h b/tests/ephy-test-utils.h index 60ed8801b..e8d110d78 100644 --- a/tests/ephy-test-utils.h +++ b/tests/ephy-test-utils.h @@ -1,12 +1,15 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * Copyright © 2013 Igalia S.L. * - * This program is free software; you can redistribute it and/or modify + * This file is part of Epiphany. + * + * Epiphany is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * Epiphany is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. diff --git a/tests/ephy-uri-helpers-test.c b/tests/ephy-uri-helpers-test.c index b7beaa129..f536ab9eb 100644 --- a/tests/ephy-uri-helpers-test.c +++ b/tests/ephy-uri-helpers-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-url-helpers-test.c - * This file is part of Epiphany + * Copyright © 2013 Bastien Nocera <hadess@hadess.net> * - * Copyright © 2013 Bastien Nocera <hadess@hadess.net> + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-web-app-utils-test.c b/tests/ephy-web-app-utils-test.c index 5f3e43067..23bb0607c 100644 --- a/tests/ephy-web-app-utils-test.c +++ b/tests/ephy-web-app-utils-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-web-app-utils-test.c - * This file is part of Epiphany + * Copyright © 2012 Igalia S.L. * - * Copyright © 2012 - Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c index 24ea8c97d..2ec52a313 100644 --- a/tests/ephy-web-view-test.c +++ b/tests/ephy-web-view-test.c @@ -1,23 +1,21 @@ -/* vim: set sw=2 ts=2 sts=2 et: */ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * ephy-web-view-test.c - * This file is part of Epiphany + * Copyright © 2012 Igalia S.L. * - * Copyright © 2012 - Igalia S.L. + * This file is part of Epiphany. * - * Epiphany is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Epiphany is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Epiphany is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Epiphany is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. + * You should have received a copy of the GNU General Public License + * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. */ #include "config.h" |